Skip to content

Commit 715f443

Browse files
committed
Add CodeQL scanning to CI
Signed-off-by: Stefan Prodan <[email protected]>
1 parent a1f05d9 commit 715f443

File tree

2 files changed

+37
-27
lines changed

2 files changed

+37
-27
lines changed

.github/workflows/fossa.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/scan.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Scan
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
schedule:
9+
- cron: '18 10 * * 3'
10+
11+
jobs:
12+
fossa:
13+
name: FOSSA
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Run FOSSA scan and upload build data
18+
uses: fossa-contrib/fossa-action@v1
19+
with:
20+
# FOSSA Push-Only API Token
21+
fossa-api-key: 5ee8bf422db1471e0bcf2bcb289185de
22+
github-token: ${{ github.token }}
23+
24+
codeql:
25+
name: CodeQL
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v2
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v1
32+
with:
33+
languages: go
34+
- name: Autobuild
35+
uses: github/codeql-action/autobuild@v1
36+
- name: Perform CodeQL Analysis
37+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)