Skip to content

Bump golangci/golangci-lint-action from 3 to 5 #39

Bump golangci/golangci-lint-action from 3 to 5

Bump golangci/golangci-lint-action from 3 to 5 #39

Workflow file for this run

name: Trivy vulnerability scanner
on:
pull_request: {}
push: {}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ^1.19
id: go
- name: Checkout code
uses: actions/checkout@v3
- name: Build a binary
run: |
go build -a -mod vendor -o example/iscsi-lib-example ./example
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: fs
scan-ref: 'example/iscsi-lib-example'
ignore-unfixed: true
vuln-type: 'os,library'
format: 'table'
exit-code: '1'
severity: 'CRITICAL,HIGH,MEDIUM,LOW'