Skip to content

Configure CI/CD: CodeQL and License Header Checks #2

Configure CI/CD: CodeQL and License Header Checks

Configure CI/CD: CodeQL and License Header Checks #2

Workflow file for this run

# .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