Configure CI/CD: CodeQL and License Header Checks #2
Workflow file for this run
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
| # .github/workflows/codeql.yml | |
| name: CodeQL | |
| on: | |
| push: | |
| branches: ["main", "master"] | |
| paths-ignore: | |
| - '**/*.md' | |
| - 'docs/**' | |
| - '.github/**' | |
| pull_request: | |
| branches: ["main", "master"] | |
| paths-ignore: | |
| - '**/*.md' | |
| - 'docs/**' | |
| - '.github/**' | |
| schedule: | |
| - cron: '39 5 * * 5' | |
| jobs: | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # Initialize CodeQL with automatic language detection | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: auto | |
| # Optionally enable broader query sets: | |
| # queries: security-extended,security-and-quality | |
| # Autobuild attempts to build compiled languages when detected | |
| - name: Autobuild | |
| uses: github/codeql-action/autobuild@v3 | |
| continue-on-error: true | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 |