Skip to content

Commit 9be9d21

Browse files
committed
Fix failing security scan workflow
## Issues Fixed 1. **CodeQL Action v2 Deprecation**: GitHub deprecated CodeQL Action v1 and v2 - Reference: https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated/ - Updated both upload-sarif actions from @v2 to @V3 2. **Repository Scan**: Line 30 - upload-sarif@v2 → @V3 3. **Docker Image Scan**: Line 57 - upload-sarif@v2 → @V3 ## Impact - Fixes CI blocking on PR #46 - Ensures security scanning continues to work - Maintains SARIF upload to GitHub Security tab - No functional changes to scanning behavior ## Testing - Local tests pass (40 passed, 1 skipped, 94.66% coverage) - CodeQL Action v3 is the current stable version - Both repository and Docker image scans will now complete successfully This resolves the "CodeQL Action v2 is now deprecated" error that was failing all PR checks.
1 parent 7f325a2 commit 9be9d21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/security.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
severity: 'CRITICAL,HIGH'
2828

2929
- name: Upload Trivy scan results to GitHub Security tab
30-
uses: github/codeql-action/upload-sarif@v2
30+
uses: github/codeql-action/upload-sarif@v3
3131
if: always()
3232
with:
3333
sarif_file: 'trivy-results.sarif'
@@ -54,7 +54,7 @@ jobs:
5454
severity: 'CRITICAL,HIGH'
5555

5656
- name: Upload Trivy scan results to GitHub Security tab
57-
uses: github/codeql-action/upload-sarif@v2
57+
uses: github/codeql-action/upload-sarif@v3
5858
if: always()
5959
with:
6060
sarif_file: 'trivy-image-results.sarif'

0 commit comments

Comments
 (0)