You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ci): ci's trivy scans run the trivy version tools.lock pins, so ci and local scans agree #1499
Both Service-image scans pin the Trivy binary to v0.70.0 through aquasecurity/trivy-action (ed142fd0, v0.36.0, the newest action release): .github/workflows/ci.yml:247-255 and .github/workflows/release.yml:352-360 (version: v0.70.0).
So CI and local scans run different scanner versions over the same vulnerability database, and a later lock bump leaves CI behind with nothing to say so. Two sources of truth for one tool.
Proposed remedy
Set version: v0.75.0 in both trivy-action steps.
Add a workflow contract test that reads tools.lock's [binary.trivy].version and fails when any aquasecurity/trivy-action step's version is not v<that version>, so the lock is the single source and a bump fails CI until the workflows match.
Acceptance criteria
Both trivy-action steps pass version: v0.75.0.
A test fails when a trivy-action step's version differs from tools.lock's Trivy version, and passes now.
The Service image scan passes on the PR (ci.yml's Service Image job runs for it).
Intake placed this item kept in v0.2.32: a person placed it in v0.2.32, and that placement stands.
Priority: P2-Medium. CI and local security scans silently disagree on scanner version, undermining trust in scan results, but nothing is actively broken.
Value: Medium. Consistent scanner versions between CI and local ensure reproducible vulnerability results and prevent silent drift on future bumps.
Effort: Low. Change two version strings in workflow YAML and add a small contract test that reads tools.lock and compares.
The Service Image scan's aquasecurity/trivy-action step in both .github/workflows/ci.yml and .github/workflows/release.yml now passes version: v0.75.0 instead of v0.70.0. That is the Trivy tools.lock pins for devops install-tools, so CI and local scans run the same scanner. The action SHA (ed142fd0, v0.36.0) is unchanged.
New workflow contract test test_every_trivy_scan_runs_the_trivy_tools_lock_pins (tests/test_workflow_contracts.py). It reads [binary.trivy].version from tools.lock and asserts the exact (workflow, job, version) list of every trivy-action step. Any drift, a missing version, or the steps disappearing all fail CI, and the failure names the workflow and job. tools.lock becomes the single source for Trivy's version.
tools.lock header (comment only): the binary bump procedure now says Trivy's version is also every trivy-action step's version, and its test command includes tests/test_workflow_contracts.py. This changes tools_lock_digest() once; nothing pins that value.
changelog.d/1499.md (Fixed) and the task file docs/agent/tasks/task-1499-ci-trivy-scans-run-the-tools-lock-version.md.
Acceptance Criteria of docs/agent/tasks/task-1499-ci-trivy-scans-run-the-tools-lock-version.md:
Both trivy-action steps pass version: v0.75.0 (ci.yml, release.yml).
test_every_trivy_scan_runs_the_trivy_tools_lock_pins in tests/test_workflow_contracts.py failed on the unfixed tree with v0.70.0 against 0.75.0, and passes now.
Pending a person: the Service image scan with Trivy v0.75.0. An item PR into release/v0.2.32 does not run ci.yml's Service Image job (it needs base_ref == main or workflow_dispatch). Run:
gh workflow run ci.yml --ref fix/1499-ci-trivy-version-from-tools-lock
gh run list --workflow ci.yml --branch fix/1499-ci-trivy-version-from-tools-lock --event workflow_dispatch --limit 1
Activity
dan-petty commentedon Oct 9, 2026
Placed in v0.2.32 by the owner, 2026-10-09.
dan-petty-bot commentedon Oct 9, 2026
Intake placed this item kept in v0.2.32: a person placed it in v0.2.32, and that placement stands.
CI and local security scans silently disagree on scanner version, undermining trust in scan results, but nothing is actively broken.Consistent scanner versions between CI and local ensure reproducible vulnerability results and prevent silent drift on future bumps.Change two version strings in workflow YAML and add a small contract test that reads tools.lock and compares.fix(ci): ci's trivy scans run the trivy version tools.lock pins, so c…
dan-petty-bot commentedon Oct 9, 2026
Admitted to v0.2.32: an open or merged pull request is in flight for it. (devops roadmap reprioritize)
dan-petty-bot commentedon Oct 9, 2026
What changed
#1503, merged into
release/v0.2.32as 3be8c3a.6 file(s) changed.
How it was verified
Check runs at 7a0f24f:
Acceptance Criteria of
docs/agent/tasks/task-1499-ci-trivy-scans-run-the-tools-lock-version.md:Both
trivy-actionsteps passversion: v0.75.0(ci.yml,release.yml).test_every_trivy_scan_runs_the_trivy_tools_lock_pinsintests/test_workflow_contracts.pyfailed on the unfixed tree with v0.70.0 against 0.75.0, and passes now.Pending a person: the Service image scan with Trivy v0.75.0. An item PR into release/v0.2.32 does not run ci.yml's Service Image job (it needs
base_ref == mainorworkflow_dispatch). Run:gh workflow run ci.yml --ref fix/1499-ci-trivy-version-from-tools-lockgh run list --workflow ci.yml --branch fix/1499-ci-trivy-version-from-tools-lock --event workflow_dispatch --limit 1gh run watch <id>In the Service Image job, the "Scan Service Image for Vulnerabilities" step must install Trivy v0.75.0 and pass. Once refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486 has removed the release-PR skip, the v0.2.32 release PR into main runs the same scan by itself.
feat(release): v0.2.32 (#1516)