-
Notifications
You must be signed in to change notification settings - Fork 36
47 lines (37 loc) · 1.04 KB
/
security.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: 👮♀️ Security
on:
push: { branches: [main] }
pull_request: { branches: [main] }
schedule:
- cron: "19 7 * * 0"
jobs:
codeql:
name: CodeQL
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "go"
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
gosec:
name: GoSec
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run GoSec Security Scanner
uses: securego/gosec@master
with:
args: "-severity=medium -no-fail -fmt sarif -out gosec-results.sarif ./..."
- name: Upload GoSec scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: "gosec-results.sarif"