Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,20 @@ jobs:
run: |
make format-check

gosec:
runs-on: ubuntu-latest
env:
GO111MODULE: on

steps:
- name: Checkout Source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Run Gosec Security Scanner
uses: securego/gosec@e0cca6fe95306b7e7790d6f1bf6a7bec6d622459 # v2.22.0
with:
args: '-severity high -exclude-dir=testdata -exclude=*_test.go ./...'

vulnerability-check:
name: "Vulnerability check"
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions cmd/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func DownloadFile(URL string, timeout int) (string, error) {
// For now, skip insecure HTTPS downloads verification only for localhost
var tls tls.Config
if strings.Contains(URL, "https://127.0.0.1") {
// #nosec G402
tls.InsecureSkipVerify = true //nolint:gosec
} else {
tls.InsecureSkipVerify = false
Expand Down
Loading