Skip to content

Commit 1e9092c

Browse files
authored
Merge pull request #403 from Automattic/add/codeql
ci: set up CodeQL analysis
2 parents bdb86af + 3e932c9 commit 1e9092c

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CodeQL Analysis
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: '1 1 * * 3'
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
analyze:
18+
name: Static Code Analysis with CodeQL
19+
runs-on: ubuntu-latest
20+
permissions:
21+
actions: read
22+
contents: read
23+
security-events: write
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language:
28+
- actions
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/[email protected]
32+
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/[email protected]
35+
with:
36+
languages: ${{ matrix.language }}
37+
38+
- name: Perform CodeQL Analysis
39+
uses: github/codeql-action/[email protected]
40+
with:
41+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)