mirror of
https://github.com/kochetkov-ma/claude-brewcode.git
synced 2026-09-14 20:16:41 +08:00
9032787167
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
60 lines
1.5 KiB
YAML
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"
|