Skip to content

Commit d2fedef

Browse files
authored
Merge pull request #20 from tmetsch/chore/added_codeql_action
Chore: added codeql action
2 parents 5bf7c9d + 907e53c commit d2fedef

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/codeql.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "codeql"
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
pull_request:
6+
branches: [ "main" ]
7+
schedule:
8+
- cron: '45 18 * * 4'
9+
jobs:
10+
analyze:
11+
name: Analyze (${{ matrix.language }})
12+
runs-on: ${{ 'ubuntu-latest' }}
13+
permissions:
14+
security-events: write
15+
packages: read
16+
actions: read
17+
contents: read
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
include:
22+
- language: actions
23+
build-mode: none
24+
- language: go
25+
build-mode: manual
26+
- language: python
27+
build-mode: none
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v4
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v3
33+
with:
34+
languages: ${{ matrix.language }}
35+
build-mode: ${{ matrix.build-mode }}
36+
- if: matrix.build-mode == 'manual'
37+
shell: bash
38+
run: |
39+
make build
40+
- name: Perform CodeQL Analysis
41+
uses: github/codeql-action/analyze@v3
42+
with:
43+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)