This workflow should only be triggering on PRs that touch Github workflows. This is not the case currently because I forgot to add path filtering in the original implementation.
38 lines
891 B
YAML
38 lines
891 B
YAML
name: Github Actions CodeQL
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '.github/**'
|
|
schedule:
|
|
- cron: '30 0 * * *'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
codeql:
|
|
name: 'Github Actions CodeQL'
|
|
runs-on: ubuntu-24.04
|
|
permissions:
|
|
security-events: write
|
|
steps:
|
|
- name: Checkout LLVM
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
sparse-checkout: |
|
|
.github/
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
|
|
with:
|
|
languages: actions
|
|
queries: security-extended
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
|