Skip to content

CodeQL

CodeQL #257

Workflow file for this run

name: CodeQL
on:
push:
branches: [ main ]
tags-ignore:
- "v*.*.*"
pull_request:
branches: [ main ]
schedule:
- cron: '0 6 * * 1'
jobs:
analyze:
name: Analyze (javascript)
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: javascript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
output: codeql-results
- uses: actions/upload-artifact@v4
if: always()
with:
name: codeql-sarif
path: codeql-results/
- name: Summary
if: always()
run: |
STATUS="${{ job.status }}"
[ "$STATUS" = "success" ] && ICON="✅" || ICON="❌"
RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
{
echo "## ${ICON} CodeQL — Static Analysis"
echo ""
echo "| | |"
echo "|---|---|"
echo "| Status | **${STATUS}** |"
echo "| Language | \`javascript\` |"
echo "| Commit | \`${{ github.sha }}\` |"
echo "| Branch | \`${{ github.ref_name }}\` |"
echo ""
echo "📄 [Download SARIF report](${RUN_URL}#artifacts) — open the run page and scroll to **Artifacts**"
} >> "$GITHUB_STEP_SUMMARY"