Repository navigation
ci: use the shared scan-image and gate actions - #283
Conversation
Replace the local composite action `.github/actions/scan-image` with
the shared `elixir-cloud-aai/.github/actions/scan-image` in `ci.yml`,
`release.yml` and `scan.yml`, and the inline gate logic of `passed`
("CI passed") with the shared `gate` action (`push` and `publish` may
be skipped on pull requests only, as before). Both are pinned to the
same commit of `elixir-cloud-aai/.github` as in FOCA. The gate job gets
`permissions: {}`. Dependabot covers the pins via `/`; comments and
docs are updated, and a test checks that shared actions are pinned.
Closes #270
Closes #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Check `allow-skipped` of the gate and that all pins of the shared actions name the same commit; say how to bump Trivy; reflow comments. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideAdopts the organization’s shared scan-image and gate actions, pinned consistently to one full commit SHA, while preserving existing CI and release behavior; Dependabot, workflow tests, and documentation are updated to enforce and explain the new arrangement. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. The security scan did not finish, and the workflows now rely on a pinned external scanner and gate action, so a behavior difference that misses vulnerabilities or accepts a failed job could let an unsafe image proceed; reverting would not undo exposure from an image already published or used. The commit pin limits drift, but the shared action implementations are not part of this diff.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #283 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 21 21
Lines 2195 2195
=========================================
Hits 2195 2195 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
.github/actions/scan-image;ci.yml,release.ymlandscan.ymluse the sharedelixir-cloud-aai/.github/actions/scan-image(same steps; the Trivy version is now itstrivy-versioninput, defaultv0.75.0as before; the shared action pinsupload-sarifv4.39.1 instead of the local v4.39.0).passed("CI passed") uses the sharedelixir-cloud-aai/.github/actions/gate, withallow-skipped: push publishon pull requests only (as before); the gate job getspermissions: {}(as in FOCA). Job IDs and names unchanged, so no ruleset change.mainas FOCA (10e8303…, comments# scan-image/# gate;.githubhas no releases). Dependabot: the/.github/actions/scan-imagedirectory is dropped;/covers the pins..trivyignore.yaml, workflows) anddocs/development.mdupdated; a new test (tests/test_workflows.py) checks that the workflows use no local actions, that shared actions are pinned to full SHAs, and that the gate passestoJSON(needs)to the shared gate.Same rollout as elixir-cloud-aai/foca#553.
Closes #270
Closes #271
Verification
allow-skipped, all pins must name one SHA, Trivy bump guidance added to the docs.pre-commit runon the changed files: passed (incl. actionlint, semgrep, ast-grep, mypy).pytest: 1484 passed, 258 skipped (tests needing MongoDB/Helm, run in CI); the new test failed before the workflow change and passes after.CI passedvia the shared gate withpush/publishskipped as allowed;Scan imagevia the shared scan-image action passed. Sourcery: reviewed, no threads.Declined review findings
.githubhas no tags: kept as in the merged FOCA rollout (#553); whether Dependabot bumps untagged SHA pins is not verified here and applies org-wide.# gate/# scan-imagepin comments in the test: YAML drops comments; noted in the test docstring.Open questions
None.
🤖 Generated with Claude Code