CodeQL #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CodeQL Security Scanning Workflow | |
| # Analyzes JavaScript/TypeScript code for security vulnerabilities | |
| # Results appear in GitHub Security tab under "Code scanning alerts" | |
| name: CodeQL | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| schedule: | |
| # Run weekly on Sundays at 00:00 UTC for ongoing security monitoring | |
| - cron: '0 0 * * 0' | |
| jobs: | |
| analyze: | |
| name: Analyze JavaScript | |
| runs-on: ubuntu-latest | |
| # Required permissions for CodeQL | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # Initialize CodeQL for JavaScript/TypeScript analysis | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: javascript-typescript | |
| # Use extended queries for more comprehensive security coverage | |
| queries: security-extended | |
| # Autobuild attempts to build any compiled languages | |
| # For JavaScript, this step mainly ensures proper file discovery | |
| - name: Autobuild | |
| uses: github/codeql-action/autobuild@v3 | |
| # Perform CodeQL Analysis and upload results | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 | |
| with: | |
| category: "/language:javascript-typescript" |