CodeQL Security Scan #53
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
| name: 'CodeQL Security Scan' | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| schedule: | |
| - cron: '30 2 * * 1' # Run weekly | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| jobs: | |
| analyze: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Assumes your repo has JavaScript. | |
| # Add 'python', 'go', 'java', etc. if needed. | |
| language: ['javascript'] | |
| steps: | |
| - name: 'Checkout repository' | |
| uses: actions/checkout@v4 | |
| - name: 'Initialize CodeQL' | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| - name: 'Install Dependencies' | |
| run: npm ci | |
| - name: 'Build Website' | |
| run: npm run build | |
| - name: 'Perform CodeQL Analysis' | |
| uses: github/codeql-action/analyze@v3 |