Skip to content

Commit c6d637f

Browse files
ndrenoclaude
andcommitted
fix(ci): add GHCR authentication for Trivy security scans
Trivy needs to authenticate with GHCR to pull the container images for security scanning. Also updates CodeQL action from v3 to v4 to address deprecation warning. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7a79eb2 commit c6d637f

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,13 @@ jobs:
245245
id: tag
246246
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
247247

248+
- name: Log in to GitHub Container Registry
249+
uses: docker/login-action@v3
250+
with:
251+
registry: ghcr.io
252+
username: ${{ github.actor }}
253+
password: ${{ secrets.GITHUB_TOKEN }}
254+
248255
# Security scan images
249256
- name: Scan data plane image
250257
uses: aquasecurity/trivy-action@master
@@ -263,7 +270,7 @@ jobs:
263270
severity: 'CRITICAL,HIGH'
264271

265272
- name: Upload Trivy scan results
266-
uses: github/codeql-action/upload-sarif@v3
273+
uses: github/codeql-action/upload-sarif@v4
267274
if: always()
268275
with:
269276
sarif_file: '.'

0 commit comments

Comments
 (0)