Skip to content

Commit 202fd2a

Browse files
committed
ci: Adding codeQL
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
1 parent d68e108 commit 202fd2a

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: CodeQL
3+
4+
permissions:
5+
actions: none
6+
checks: none
7+
contents: none
8+
deployments: none
9+
issues: none
10+
packages: none
11+
pages: none
12+
pull-requests: none
13+
repository-projects: none
14+
security-events: write
15+
16+
on:
17+
push:
18+
branches:
19+
- main
20+
pull_request:
21+
branches:
22+
- main
23+
schedule:
24+
- cron: "0 0 * * 6"
25+
26+
jobs:
27+
analyze:
28+
name: Analyze
29+
runs-on: ubuntu-latest
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
language:
34+
- go
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
- name: Setup Golang
39+
uses: actions/setup-go@v5
40+
with:
41+
go-version: "^1.22"
42+
cache: true
43+
- name: Setup CodeQL
44+
uses: github/codeql-action/init@v3
45+
with:
46+
languages: ${{ matrix.language }}
47+
- name: Build
48+
run: make build
49+
- name: CodeQL
50+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)