Skip to content

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

Configure CI/CD: CodeQL and License Header Checks

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

Workflow file for this run

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 auto language detection (v4)
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: auto
# Autobuild attempts to build compiled languages; continue on error for script-only repos
- name: Autobuild
uses: github/codeql-action/autobuild@v4
continue-on-error: true
# Perform the CodeQL analysis
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4