-
Notifications
You must be signed in to change notification settings - Fork 27
60 lines (50 loc) · 1.78 KB
/
Copy pathcodeql.yml
File metadata and controls
60 lines (50 loc) · 1.78 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CodeQL analysis
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: '22 5 * * 1'
permissions: read-all
jobs:
analyze-python:
name: Analyze Python (CodeQL)
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Initialize CodeQL
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
with:
languages: python
queries: security-extended
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
with:
category: /language:python
actionlint:
name: Lint workflow bash (actionlint + shellcheck)
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install actionlint v1.7.12
run: |
curl -fsSL -o actionlint.tar.gz \
https://github.com/rhysd/actionlint/releases/download/v1.7.12/actionlint_1.7.12_linux_amd64.tar.gz
echo "8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8 actionlint.tar.gz" | sha256sum -c
tar -xzf actionlint.tar.gz actionlint
chmod +x actionlint
- name: Run actionlint
# -ignore: actionlint <= v1.7.12 predates the `queue` concurrency key
# (GitHub changelog 2026-05-07). Drop once rhysd/actionlint#657 ships.
run: |
./actionlint -color \
-ignore 'unexpected key "queue" for "concurrency" section' \
.github/workflows/*.yml