chore: bump golang from c0074c7 to 4a7137e in /build/tooling
#5213
Workflow file for this run
This file contains hidden or 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: scan_vulns | |
| on: | |
| push: | |
| paths-ignore: | |
| - ".github/workflows/website.yaml" | |
| - "docs/**" | |
| - "library/**" | |
| - "demo/**" | |
| - "deprecated/**" | |
| - "example/**" | |
| - "website/**" | |
| - "**.md" | |
| - "!cmd/build/helmify/static/README.md" | |
| pull_request: | |
| paths-ignore: | |
| - ".github/workflows/website.yaml" | |
| - "docs/**" | |
| - "library/**" | |
| - "demo/**" | |
| - "deprecated/**" | |
| - "example/**" | |
| - "website/**" | |
| - "**.md" | |
| - "!cmd/build/helmify/static/README.md" | |
| permissions: read-all | |
| jobs: | |
| govulncheck: | |
| name: "Run govulncheck" | |
| runs-on: oracle-vm-4cpu-16gb-x86-64 | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version: "1.25" | |
| check-latest: true | |
| - uses: golang/govulncheck-action@31f7c5463448f83528bd771c2d978d940080c9fd # unreleased, includes fix for golang/go#75908 | |
| scan_vulnerabilities: | |
| name: "[Trivy] Scan for vulnerabilities" | |
| runs-on: oracle-vm-4cpu-16gb-x86-64 | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0 | |
| with: | |
| egress-policy: audit | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Download trivy | |
| run: | | |
| pushd $(mktemp -d) | |
| wget https://github.com/aquasecurity/trivy/releases/download/v${{ env.TRIVY_VERSION }}/trivy_${{ env.TRIVY_VERSION }}_Linux-64bit.tar.gz | |
| tar zxvf trivy_${{ env.TRIVY_VERSION }}_Linux-64bit.tar.gz | |
| echo "$(pwd)" >> $GITHUB_PATH | |
| env: | |
| TRIVY_VERSION: "0.69.3" | |
| - name: Download trivy db | |
| run: | | |
| trivy image \ | |
| --download-db-only \ | |
| --db-repository=ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db,docker.io/aquasec/trivy-db | |
| - name: Run trivy on git repository | |
| run: | | |
| trivy fs --format table --ignore-unfixed --skip-dirs website --scanners vuln . | |
| - name: Build docker images | |
| run: | | |
| make docker-buildx \ | |
| IMG=gatekeeper-e2e:latest | |
| make docker-buildx-crds \ | |
| CRD_IMG=gatekeeper-crds:latest | |
| - name: Run trivy on images | |
| run: | | |
| for img in "gatekeeper-e2e:latest" "gatekeeper-crds:latest"; do | |
| trivy image --ignore-unfixed --pkg-types="os,library" "${img}" | |
| done |