Another round of fixes/improvements after testing more of the new code #332
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: Go-VulnCheck | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
osv-scanner: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Set up Go | |
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version-file: go.mod | |
- name: Clean Go environment and install dependencies | |
run: | | |
go clean -cache -modcache -i -r | |
go mod download | |
go mod tidy | |
- name: Build the project | |
run: | | |
go build ./... | |
go test ./... | |
- name: Install govulncheck | |
run: go install golang.org/x/vuln/cmd/govulncheck@latest | |
- name: Download OSV-Scanner | |
run: | | |
wget /~https://github.com/google/osv-scanner/releases/download/v1.8.1/osv-scanner_linux_amd64 -O osv-scanner | |
chmod +x osv-scanner | |
#- name: Run OSV-Scanner | |
# run: ./osv-scanner --recursive . | |
- name: Run govulncheck | |
run: govulncheck ./... |