fix(ci): upgrade codeql-action to v4 and clean up security workflow

CodeQL Action v1 and v2 have been deprecated. Update
upload-sarif to v4, remove unnecessary strategy block
(missing required matrix property), and remove invalid
exit-code input from the upload-sarif step.
This commit is contained in:
Amir Alavi
2026-03-04 22:06:29 -05:00
parent d4ed42c71f
commit a8c092f8e1

View File

@@ -17,9 +17,6 @@ jobs:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -41,7 +38,6 @@ jobs:
output: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: 'trivy-results.sarif'
exit-code: '0'