Update module gopkg.in/go-playground/validator.v9 to v10 #125
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run go build and Scanning by Trivy vulnerability in IaC mode | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
pr: | |
name: Run go build and Scanning by Trivy vulnerability in IaC mode | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.18 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.18 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Get dependencies | |
run: go mod download | |
- name: Build | |
run: go build -v app/main.go | |
- name: Run Trivy vulnerability scanner in IaC mode | |
uses: aquasecurity/trivy-action@master | |
with: | |
scan-type: 'config' | |
hide-progress: false | |
format: 'table' | |
exit-code: '1' | |
ignore-unfixed: true | |
severity: 'CRITICAL,HIGH' |