Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
# Step 2: Initialize the CodeQL analysis engine
# This sets up the CodeQL database and prepares for code scanning
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
# Use the language specified in the matrix
languages: ${{ matrix.language || 'javascript-typescript' }}
Expand All @@ -124,12 +124,12 @@ jobs:
# For JavaScript/TypeScript, this typically doesn't compile anything
# but ensures the code is in the right state for analysis
- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4

# Step 4: Run the actual CodeQL analysis
# This performs the security scanning and generates results
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
with:
# Categorize results by language for better organization in the Security tab
category: "/language:${{ matrix.language || 'javascript-typescript' }}"
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
# Step 3: Upload scan results to GitHub Security dashboard
# This makes vulnerability findings visible and actionable in the GitHub UI
- name: Upload Trivy scan results to GitHub Security
uses: github/codeql-action/upload-sarif@v3
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: 'trivy-results.sarif' # Use the results file generated by Trivy

Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
# This makes container vulnerability findings visible in the GitHub UI
- name: Upload container scan results
if: success() # Only run if the scan succeeded
uses: github/codeql-action/upload-sarif@v3
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: 'container-results.sarif' # Use the results file generated by Trivy

Expand Down
Loading