Repository navigation
ci(trivy): authenticate to GHCR so the weekly image scan can pull - #6
Merged
Merged
Conversation
The weekly Trivy scan targets the private CamCore image ghcr.io/team-camcore/seerr:latest but never authenticated, so every run failed with 'UNAUTHORIZED: authentication required'. Grant the job packages: read and pass the workflow's own GITHUB_TOKEN to Trivy. The image is published by this repository, so no new secret is needed. Refs: OPS-1507 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RnghqAkpHr5qF3HeAS1oti
Member
Author
|
Validation: ran this workflow on the PR branch with Generated by Claude Code |
jcam2803
marked this pull request as ready for review
November 20, 2026 09:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The weekly Trivy Container Vulnerability Scan scans CamCore's production image,
ghcr.io/team-camcore/seerr:latest(pointed there by #2, OPS-644). It has failed on every recorded run (9, 16 and 23 October 2026), so that image has had no container vulnerability scan.The cause is in the failed run's log (run 39956593110, 23 October 2026):
The GHCR package is private and the workflow never authenticated.
This change, in
.github/workflows/trivy-scan.ymlonly:packages: readto the job's permissions;GITHUB_TOKENto Trivy throughTRIVY_USERNAME/TRIVY_PASSWORDfor the registry pull.The image is published by this repository's CamCore Seerr Image workflow with
GITHUB_TOKEN, so the repository token can read it and no new secret is needed. No new action is introduced, soactions.lockis unchanged. The image, tag, schedule and SARIF upload are unchanged.Change record: OPS-1507.
How Has This Been Tested?
prettier --checkon the workflow: clean.actionlintis not available in this environment and was not run.workflow_dispatchto confirm the pull and the SARIF upload; the result is recorded in a comment below and on OPS-1507.Screenshots / Logs (if applicable)
Checklist:
pnpm buildpnpm i18n:extractGenerated by Claude Code