Skip to content

Update module gopkg.in/go-playground/validator.v9 to v10 #125

Update module gopkg.in/go-playground/validator.v9 to v10

Update module gopkg.in/go-playground/validator.v9 to v10 #125

Workflow file for this run

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'