Skip to content

ci: attest, sign and scan published images #234

Closed

Description

@uniqueg

Problem

The Docker images and Helm chart built and published by this repository have no build provenance, no SBOM and no signature, and CI does not scan them for known vulnerabilities. Operators can't verify that an image was built from this repository by its workflow, nor see what it contains, and vulnerable base images or dependencies go unnoticed until someone reports them.

Expected

All free for public repositories; no paid services.

  • Build images with docker/build-push-action (Buildx) and publish OCI attestations with them: SBOM (sbom: true) and provenance (provenance: mode=max).
  • Attest with GitHub artifact attestations (actions/attest-build-provenance, push-to-registry: true), and sign the pushed digests with Sigstore keyless signing (cosign sign with the workflow's OIDC identity; no keys to manage). Workflow permissions limited to what this needs (id-token: write, attestations: write) on the publishing jobs only.
  • Scan the built image in CI on every pull request and push (e.g., Trivy or Grype, pinned by commit SHA): fail on critical/high vulnerabilities that have a fix, report the others; upload SARIF results to code scanning. Also scan the latest release image on a weekly schedule, so new CVEs in released images are found.
  • An ignore file for accepted findings, each with a reason and an expiry date.
  • Docs: how operators verify an image (gh attestation verify, cosign verify with the expected identity and issuer) and read its SBOM; release notes entry.
  • The same setup as in the other ELIXIR On-Cloud repositories (FOCA, Cloud Registry, proTES).

Blocked by #44 (release workflow), which this extends.

Activity

  1. added
    priority: high
    status: blocked
    type: ci / cd
    type: security
    workload: hours
    on Oct 22, 2026
  2. added
    status: in progress
    and removed
    status: blocked
    on Oct 23, 2026
  3. removed
    status: in progress
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: ci / cdtype: securityworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions