Skip to content

Commit

Permalink
ci: add Trivy fallback DB repositories and fix failing Azure builds
Browse files Browse the repository at this point in the history
* ci: add Trivy fallback DB repositories

Just adding these now to try to avoid people hitting the Trivy rate limiting issues later.

* ci: use latest Alpine Azure CLI image

Our Azure CLI versions of the runner image are failing to build currently. It looks like the problem is that Microsoft switched from Alpine to cbl-mariner after v2.63.0. For now I'm pinning to that version since our build process expects Alpine.
  • Loading branch information
adamconnelly authored Oct 22, 2024
1 parent 8a27bb1 commit 2646a61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ jobs:
${{ matrix.target }}.platform=${{ matrix.platform }}
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.27.0
with:
image-ref: ${{ env.IMAGE_TAG }}
format: "sarif"
output: "trivy-results.sarif"
severity: "CRITICAL,HIGH"
timeout: "10m"
env:
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
Expand Down
3 changes: 1 addition & 2 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ target "gcp" {
target "azure" {
target = "azure"
platforms = ["linux/amd64", "linux/arm64"]
args = {"BASE_IMAGE": "mcr.microsoft.com/azure-cli:latest"}
args = {"BASE_IMAGE": "mcr.microsoft.com/azure-cli:2.63.0"}
}

0 comments on commit 2646a61

Please sign in to comment.