Skip to content

Commit

Permalink
Add trivy scan step (#88)
Browse files Browse the repository at this point in the history
* Add trivy scan step

* Bump libs
  • Loading branch information
hayorov authored Jun 21, 2021
1 parent b0f8fd1 commit 4bee51f
Show file tree
Hide file tree
Showing 4 changed files with 222 additions and 138 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
scan-type: "fs"
ignore-unfixed: true
format: "template"
template: "@/contrib/sarif.tpl"
output: "trivy-results.sarif"
severity: "CRITICAL"
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: "trivy-results.sarif"
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
scan-type: "fs"
ignore-unfixed: true
format: "template"
template: "@/contrib/sarif.tpl"
output: "trivy-results.sarif"
severity: "CRITICAL"
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: "trivy-results.sarif"
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
module github.com/hayorov/helm-gcs

go 1.15
go 1.16

require (
cloud.google.com/go/storage v1.12.0
cloud.google.com/go/storage v1.15.0
github.com/ghodss/yaml v1.0.0
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.1.3
google.golang.org/api v0.48.0
helm.sh/helm/v3 v3.5.0
rsc.io/letsencrypt v0.0.3 // indirect
helm.sh/helm/v3 v3.6.1
)
Loading

0 comments on commit 4bee51f

Please sign in to comment.