Skip to content

Commit 974fe99

Browse files
authored
story(build): enable codeql (#88)
* build(issue-86): added codeql workflow
1 parent a52418f commit 974fe99

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+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: '34 11 * * 3'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
15+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'go' ]
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
29+
30+
# Custom Go version because of: https://github.com/github/codeql/issues/13992#issuecomment-1711721716
31+
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5
32+
with:
33+
go-version: '1.22'
34+
35+
- name: Initialize CodeQL
36+
uses: github/codeql-action/init@ccf74c947955fd1cf117aef6a0e4e66191ef6f61 # v3
37+
with:
38+
languages: ${{ matrix.language }}
39+
40+
- name: Perform CodeQL Analysis
41+
uses: github/codeql-action/analyze@ccf74c947955fd1cf117aef6a0e4e66191ef6f61 # v3
42+
with:
43+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)