-
Notifications
You must be signed in to change notification settings - Fork 8
58 lines (49 loc) · 1.44 KB
/
kondukto-gosec.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
48
49
50
51
52
53
54
55
56
57
58
name: Kondukto Gosec Scan
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * *"
push:
branches:
- master
concurrency:
group: ci-master-gosec-scan-1
cancel-in-progress: true
jobs:
go-sec_scan:
runs-on: ubuntu-latest
env:
GO111MODULE: on
KONDUKTO_TOKEN: ${{ secrets.KONDUKTO_TOKEN }}
KONDUKTO_HOST: ${{ secrets.KONDUKTO_HOST }}
name: Kondukto GoSec Scan
steps:
- name: Configure Kondukto CLI
id: configure_kondukto_cli
run: |
curl -sSL https://cli.kondukto.io | sh
- name: Get Kondukto CLI Version
id: kdt_version
run: |
kdt version
- name: Checkout Project
id: checkout_project
uses: actions/checkout@v3
with:
ref: master
- name: Run Gosec Security Scanner
id: run_gosec
uses: securego/gosec@master
with:
# we let the report trigger content trigger a failure using the GitHub Security features.
args: "-no-fail -fmt json -out results.json ./..."
- name: Archive GoSec Scan Results
id: archive_gosec_results
uses: actions/upload-artifact@v3
with:
name: results.json
path: results.json
- name: Upload Gosec Scan Results To Kondukto
id: upload_gosec_results
run: |
kdt scan -p ${{ github.event.repository.name }} -t gosec -b ${{ github.ref_name }} -f results.json