implement delete and force source_image option #501
Workflow file for this run
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: Integration | |
on: | |
push: | |
pull_request: | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "^1.19" | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Lint Go Code | |
run: | | |
go install honnef.co/go/tools/cmd/staticcheck@latest | |
staticcheck ./... | |
vet: | |
name: Vet | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "^1.19" | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Vet Go code | |
run: go vet ./... | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "^1.19" | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Compile | |
run: make build | |
- name: Trivy scan | |
uses: aquasecurity/trivy-action@0.11.2 | |
with: | |
scan-type: "fs" | |
ignore-unfixed: true | |
format: "table" | |
exit-code: "1" | |
vuln-type: "os,library" | |
severity: "CRITICAL,HIGH" |