Skip to content

ci(docker): gate image publish on quality and security checks#2

Merged
christophecollet78 merged 1 commit into
masterfrom
claude/optimistic-gagarin-df5353
May 13, 2026
Merged

ci(docker): gate image publish on quality and security checks#2
christophecollet78 merged 1 commit into
masterfrom
claude/optimistic-gagarin-df5353

Conversation

@christophecollet78
Copy link
Copy Markdown
Owner

Add test, security and CodeQL jobs that must pass before the Docker image is built and pushed. Quality covers gofmt, go vet, golangci-lint, race-enabled tests with coverage, and a build sanity check. Security runs govulncheck, gosec, gitleaks, Trivy filesystem scan and Hadolint on the Dockerfile, uploading SARIF to the GitHub Security tab. The publish job now builds a single-arch local image for a Trivy image scan that fails on CRITICAL/HIGH before doing the multi-arch push, which now also emits provenance and SBOM attestations. PRs trigger the checks without pushing.

Add test, security and CodeQL jobs that must pass before the Docker
image is built and pushed. Quality covers gofmt, go vet, golangci-lint,
race-enabled tests with coverage, and a build sanity check. Security
runs govulncheck, gosec, gitleaks, Trivy filesystem scan and Hadolint
on the Dockerfile, uploading SARIF to the GitHub Security tab. The
publish job now builds a single-arch local image for a Trivy image
scan that fails on CRITICAL/HIGH before doing the multi-arch push,
which now also emits provenance and SBOM attestations. PRs trigger the
checks without pushing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@christophecollet78 christophecollet78 merged commit fb847ee into master May 13, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants