-
Notifications
You must be signed in to change notification settings - Fork 726
44 lines (39 loc) · 1.1 KB
/
Copy pathcodeql.yml
File metadata and controls
44 lines (39 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: 'CodeQL'
on:
push:
branches: ['9.x']
pull_request:
branches: ['9.x']
schedule:
# Run weekly to catch newly published advisories.
- cron: '17 6 * * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
analyze:
name: 'Analyze (${{ matrix.language }})'
runs-on: 'ubuntu-24.04'
timeout-minutes: 30
permissions:
contents: read
security-events: write
actions: read
strategy:
fail-fast: false
matrix:
language: ['actions']
# PHP support in CodeQL is in beta as of 2026; revisit and add 'php'
# to the matrix once it leaves beta.
steps:
- name: 'Checkout'
uses: 'actions/checkout@v4'
- name: 'Initialize CodeQL'
uses: 'github/codeql-action/init@v3'
with:
languages: ${{ matrix.language }}
queries: 'security-and-quality'
- name: 'Perform CodeQL Analysis'
uses: 'github/codeql-action/analyze@v3'
with:
category: '/language:${{ matrix.language }}'