-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 927 Bytes
/
go-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
name: Run Go Security
on:
schedule:
# weekly
- cron: '0 0 * * 0'
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
jobs:
tests:
runs-on: ubuntu-latest
env:
GO111MODULE: on
CI: "true"
GOPATH: ${{ github.workspace }}
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Dependecy Load
run: go mod download
working-directory: ./
- name: Dependecy Vendor for gosec
run: go mod vendor
working-directory: ./
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: -exclude-generated ./...