Skip to content

Commit 3e201e2

Browse files
committed
ci: use CodeQL instead of LGTM
As LGTM is going to be shut down by EOY[0], let's move the code scanning to CodeQL as recommended. Thanks to GH integration the results from such scans will be shown both in the respective PR and in the Security -> Code Scanning tab[1]. [0] https://github.blog/2022-08-15-the-next-step-for-lgtm-com-github-code-scanning/ [1] https://github.com/systemd/mkosi/security/code-scanning
1 parent 2b6b6b4 commit 3e201e2

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/codeql.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
# vi: ts=2 sw=2 et:
3+
#
4+
name: "CodeQL"
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- main
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
analyze:
19+
name: Analyze
20+
runs-on: ubuntu-22.04
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ matrix.language }}-${{ github.ref }}
23+
cancel-in-progress: true
24+
permissions:
25+
actions: read
26+
security-events: write
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
language: ['python']
32+
33+
steps:
34+
- name: Checkout repository
35+
uses: actions/checkout@v3
36+
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@v2
39+
with:
40+
languages: ${{ matrix.language }}
41+
42+
- name: Autobuild
43+
uses: github/codeql-action/autobuild@v2
44+
45+
- name: Perform CodeQL Analysis
46+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)