Skip to content

Commit 5660033

Browse files
Create codeql.yml (#79)
This change adds a CodeQL config that includes Python and Actions as the things checked by CodeQL.
1 parent 3b56148 commit 5660033

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "dev" ]
6+
# Can't use the paths-ignore with 'push' as this would cause missing analyses.
7+
pull_request:
8+
# The branches below must be a subset of the branches above
9+
branches: [ "dev" ]
10+
paths-ignore:
11+
- '**/*.md'
12+
- '**/*.txt'
13+
- '**/*.sh'
14+
schedule:
15+
- cron: '33 13 * * 2'
16+
17+
jobs:
18+
analyze:
19+
name: Analyze (${{ matrix.language }})
20+
runs-on: ubuntu-latest
21+
if: '!github.event.repository.fork'
22+
23+
permissions:
24+
# required for all workflows
25+
security-events: write
26+
# required to fetch internal or private CodeQL packs
27+
packages: read
28+
# only required for workflows in private repositories
29+
actions: read
30+
contents: read
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ actions, python ]
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v6
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@v4
43+
with:
44+
languages: ${{ matrix.language }}
45+
46+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
47+
queries: security-extended,security-and-quality
48+
49+
- name: Perform CodeQL Analysis
50+
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)