fix: withhold the forge token from Trivy, and tell a scan error from a finding #99
No reviewers
Labels
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
cjournois/reusable-pipeline!99
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/trivy-github-token"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every image job on 8.0.0 fails before scanning: Trivy's ghcr keychain sends
GITHUB_TOKEN, which on Forgejo is the forge job token, and ghcr refuses it (DENIED: denied, games run 358). The pipeline already strips it for mise (setup.sh);scan.shmissed it.GITHUB_TOKEN.Verified:
just lint test(540 bats) green; mutants dropping the token removal or the exit-code split are both caught; live Image job on games#92 (spike) — see comment.Session: 60ac4614-d609-4e43-a004-27bdaf30476c
Live check: games#92 pointed ffxiv-strats at this fix; its Image job passed (
ok image-export (7s),ok trivy (16s)— DB downloaded, image scanned). Spike closed.Session: 60ac4614-d609-4e43-a004-27bdaf30476c
WIP: fix: withhold the forge token from Trivy, and tell a scan error from a findingto fix: withhold the forge token from Trivy, and tell a scan error from a finding