feat(setup-trivy)!: automatically determine arch (#14)
CD / Release (push) Successful in 12s
CD / Release (push) Successful in 12s
Mapping x86_64 to "64bit" and aarch64 to "ARM64" as this is how Trivy names their releases. Adjusted CICD to test-run both amd64 and arm64 versions. Reviewed-on: t.behrendt/trivy-actions#14 Reviewed-by: branch-buddy <branch-buddy@t00n.de> Co-authored-by: Timo Behrendt <t.behrendt@t00n.de> Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
This commit was merged in pull request #14.
This commit is contained in:
@@ -5,17 +5,19 @@ on:
|
||||
|
||||
jobs:
|
||||
test-setup-trivy:
|
||||
name: Test Setup Trivy
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [amd64, arm64]
|
||||
name: Test Setup Trivy ${{ matrix.arch }}
|
||||
runs-on:
|
||||
- ubuntu-latest
|
||||
- linux_amd64
|
||||
- linux_${{ matrix.arch }}
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||
- name: Setup Trivy
|
||||
uses: ./setup-trivy
|
||||
with:
|
||||
version: v0.66.0
|
||||
architecture: amd64
|
||||
- name: Run Trivy
|
||||
run: trivy --version
|
||||
|
||||
@@ -23,13 +25,11 @@ jobs:
|
||||
name: Test Setup DB
|
||||
runs-on:
|
||||
- ubuntu-latest
|
||||
- linux_amd64
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||
- uses: ./setup-trivy
|
||||
with:
|
||||
version: v0.66.0
|
||||
architecture: amd64
|
||||
- name: Setup DB
|
||||
uses: ./setup-db
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user