Git & IaC Scanning
Connect GitHub, GitLab or Bitbucket to see your repositories and pipelines, link repositories to environments, and scan your infrastructure code (Dockerfile, Kubernetes, Terraform, Helm) for security and configuration problems.
Before you start
- Plan: Git Connections, Repositories and CI/CD Pipelines need Pro or Enterprise (the trial includes them). IaC Vulnerabilities and Scan Policies are on every plan, but scanning needs a Git connection, so in practice it needs Pro too. See Plans & limits.
- A Personal Access Token from your provider with read access to the repositories (and write access on GitHub if you want fix pull requests).
- Creating or changing connections, the scan policy and scan schedules requires the owner or admin role. So does Fix with a PR, which also needs AI enabled for the organization.
Most Git and scanner screens are shown in Spanish, also with the interface in English.
1. Connect a Git provider
- 1Go to Code → Git Connections and click Nueva Conexión.

- 2In Nueva Conexión Git choose the provider (GitHub, GitLab or Bitbucket) and fill in Nombre de la conexión, Personal Access Token and, if you want, Organización / Owner (opcional) (“Solo mostrar repos de esta organización”). For GitLab self-hosted, fill in URL Base.

- 3Click Crear Conexión. KeelPilot validates the token before saving it; the token is stored encrypted (AES-256-GCM).
- 4Each connection shows its status, Rate Limit and Última verificación, and has Probar conexión, Actualizar Token and Eliminar.
2. Repositories and environments
- 1Go to Code → Repositories and open a repository: you see recent commits, open PRs, contributors and Environments vinculados.
- 2Click Vincular a otro Environment, choose the Environment and the Rama de tracking (for example
main) and click Vincular. The environment must exist first.
3. CI/CD pipelines
Code → CI/CD Pipelines lists runs of GitHub Actions, GitLab CI and Bitbucket Pipelines with Repositorio, Rama, Estado (Success, Failure, Running, Pending, Cancelled, Skipped), Duración, Iniciado por and Fecha. Filter with Repositorio…, Rama… and the status.

4. Scan infrastructure code
- 1Go to Security → IaC Vulnerabilities (the screen is called Infrastructure Scanner).
- 2In Nuevo Escaneo choose Conexión… and Repositorio… and click Escanear. It scans the default branch of the repository.

- 3Open the scan to see its findings by severity (Críticos, Altos, Medios, Bajos, Info) and its Puntuación. Export with CSV or JSON. A repository you already scanned has Escanear ahora.
- 4On a finding, Fix with a PR creates a pull request that fixes it (GitHub only). Before creating it you confirm: it creates a new branch, never writes to the default branch, touches a single file, never merges, and it is recorded in the audit log.

| Type | Files it looks at | Rules |
|---|---|---|
| Dockerfile | Dockerfile, Dockerfile.* and .dockerignore | 15 |
| Kubernetes | .yaml/.yml files inside k8s/, kubernetes/, manifests/ or helm/ folders | 20 |
| Terraform | .tf and .tfvars | 20 |
| Helm | Chart.yaml and values.yaml | 12 |
67 rules in total, for example a container running as root, the latest tag, secrets in ENV or ARG, privileged pods, hostNetwork, S3 buckets or EBS volumes without encryption, security groups open to the world, IAM policies with wildcards and Ingress without TLS. Files larger than 1 MB are skipped. The score starts at 100 and subtracts 10 per critical finding, 5 per high, 2 per medium and 1 per low.
5. Scan policy (owner or admin)
There is one scan policy per organization.
- 1Go to Security → Scan Policies. Choose the tab Dockerfile, Kubernetes, Terraform or Helm.

- 2For each rule, switch between Habilitada and Deshabilitada and change the Severidad actual if you want another one than the Severidad por defecto.
- 3In Rutas Excluidas add paths to skip, for example
test/**, vendor/**, examples/**. - 4Set Escaneos concurrentes máximos (3 by default) and Minimum severity to block.
- 5Click Guardar cambios.
Minimum severity to block (“Do not block”, or critical, high, medium, low, info) does not block anything by itself: “A scan with findings at this severity or higher is flagged as blocking (blocking field in the API).” The scan shows the Blocking badge. Merges and pipelines are not stopped automatically; if you want that, read the field from your CI (see API & Webhooks).
6. Scheduled scans (owner or admin)
- 1In Scan Policies, under Schedules de escaneo, click Nuevo Schedule.

- 2Fill in Connection ID (the number of the Git connection), Repositorio (owner/repo), Rama (opcional), Frecuencia (Diario (02:00), Semanal (Lunes 02:00) or Personalizado with an Expresión Cron) and Timezone.
- 3Click Crear Schedule. The list shows Próxima ejecución and whether it is Activo.
7. Risk review on pull requests (owner or admin)
KeelPilot can comment a risk review on every pull request (GitHub) or merge request (GitLab) that touches infrastructure code. It runs from the Git webhook you already have, when the PR is opened or updated. Bitbucket is not supported yet.
- 1Go to Code → Git Connections, click the Webhook button of the connection and check Comentar la revisión de riesgo en los PRs de esta conexión. It is off by default and is set per connection.
- 2Make sure the webhook sends the Pull requests event (GitHub) or Merge request events (GitLab).
- 3Make sure the connection token can comment: on GitHub, Pull requests read and write (fine-grained token) or the
reposcope (classic token); on GitLab, theapiscope.
It only looks at infrastructure files: Terraform (.tf, .tfvars), Helm (Chart.yaml, values*.yaml, templates/) and Kubernetes manifests. A PR without those files gets no comment. There is a single comment per PR: it is edited on every push, and left alone if the diff did not change.
| Part of the comment | What it shows |
|---|---|
| Risk level | High, medium or low. |
| Components | The components touched (for example aws_instance.api, Deployment/web, chart api) and the KeelPilot environment linked to the repository. |
| IAM and network | Changes to IAM, RBAC, IRSA roles, security groups, VPC, load balancers, NetworkPolicy and Ingress. Wildcards (*), principal *, 0.0.0.0/0 and public access are flagged as serious. |
| Cost | Changes that move the cost, with the old and the new value: instance_type, instance_class, desired/min/max_size, replicas, storage sizes, multi_az and similar. |
| Deletions | Resources being removed. Serious when they hold data: RDS, S3, DynamoDB, EFS, PVC, StatefulSet and similar. |
| Past incidents | Incidents from the last 90 days linked to the repository by Change Intelligence, or whose title names those components, with a link. |
| SLOs | Related SLOs with their status and error budget. |
High: at least one serious signal, or a related SLO at risk or breached. Medium: any other signal, or previous incidents. Low: none of that.
terraform plan: it does not run anything of yours, and the comment footer says so. If AI is enabled for the organization and the plan includes the Copilot, the comment adds a paragraph for the reviewer (1 AI quota, only when the diff changes); the AI receives the structured analysis, never the raw diff. The comment is written in the organization's language. It reads the first page of files of the PR (100 on GitHub). See also Change Intelligence and Traces & SLOs.How to check it works
- The Git connection shows Conectado and Probar conexión succeeds.
- After Escanear, the scan appears as Completado with a score.
- With a minimum blocking severity set, a scan with findings at that level shows the Blocking badge.
Troubleshooting
“La creación automática de pull requests todavía no está disponible para gitlab. Por ahora sólo GitHub.”
Cause: Fix with a PR only works on GitHub connections.
Fix: Apply the fix by hand on GitLab or Bitbucket, using the remediation of the finding.
“AI is not enabled for your organization: without it there is no fix to propose.”
Cause: The fix is written by AI.
Fix: An admin enables it in Settings → Integrations → Artificial intelligence (see AIOps).
“Se requiere rol owner o admin”.
Cause: Connections, the policy, schedules and fix pull requests are for owners and admins.
Fix: Ask an owner or admin of the organization.
“Se alcanzó el límite de escaneos concurrentes (3). Intentá más tarde.” or “Ya hay un escaneo en progreso para este repositorio y rama”.
Cause: The organization reached Escaneos concurrentes máximos, or that repository and branch are already being scanned.
Fix: Wait for the running scans to finish, or raise the limit in Scan Policies.
“The scan failed: nothing was analyzed, so there is no score and no findings.”
Cause: No file could be read: an expired token or the provider rate limit, for example.
Fix: Use Probar conexión and, if needed, Actualizar Token; check the Rate Limit column.
“No hay environments creados. Creá uno en la sección Environments primero.”
Cause: There is no environment to link the repository to.
Fix: Create an environment in Applications → Environments and link again.