Skip to content

Commit 6388839

Browse files
authored
Merge pull request #109 from PerfectThymeTech/marvinbuss/codeql
Add CodeQL Code Scanning
2 parents 182c38e + 1c5697d commit 6388839

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Code Scanning
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
schedule:
10+
- cron: "00 10 * * 6"
11+
12+
jobs:
13+
codeql:
14+
name: CodeQL
15+
runs-on: [ubuntu-latest]
16+
timeout-minutes: 360
17+
18+
permissions:
19+
security-events: write
20+
# only required for workflows in private repositories
21+
# actions: read
22+
# contents: read
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language: ["python"]
28+
29+
steps:
30+
# Checkout repository
31+
- name: Check Out Repository
32+
id: checkout_repository
33+
uses: actions/checkout@v4
34+
35+
# CodeQL initialization of tools for scanning
36+
- name: CodeQL - Initialize
37+
id: codeql_init
38+
uses: github/codeql-action/init@v3
39+
with:
40+
languages: ${{ matrix.language }}
41+
42+
43+
# CodeQL autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
44+
- name: CodeQL - Autobuild
45+
id: codeql_build
46+
uses: github/codeql-action/autobuild@v3
47+
48+
# CodeQL analysis of code
49+
- name: CodeQL - Analysis
50+
id: codeql_analyze
51+
uses: github/codeql-action/analyze@v3
52+
with:
53+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)