Files
kochetkov-ma__claude-brewcode/.github/workflows/codeql.yml
T
Maksim Kochetkov 9032787167 main site actions (#2)
main site
web: dynamic GitHub badge, docs section in CLAUDE.md
fix(docs): remove arm64 platform, QEMU crashes on npm ci
fix(docs): track package-lock.json for reproducible Docker builds
web: docs CI/CD workflow, multiplatform docker build, README updateates
web: documentation site, deploy config, brand assets, header alignment, plan/spec skill updates
2026-03-18 12:55:08 +00:00

60 lines
1.5 KiB
YAML

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"