ci: use action.yaml as single source of truth for Trivy version (#552)

* ci: use action.yaml as single source of truth for Trivy version

* dev: add yq check and configurable Trivy install directory
This commit is contained in:
Nikita Pivkin
2026-04-10 17:29:15 +06:00
committed by GitHub
parent 34f2b232c5
commit f685ba7215
3 changed files with 17 additions and 18 deletions
+1 -5
View File
@@ -30,11 +30,7 @@ jobs:
uses: bats-core/bats-action@42fcc8700f773c075a16a90eb11674c0318ad507 # 3.0.1
- name: Install Trivy
env:
TRIVY_VERSION: ${{ inputs.trivy_version }}
run: |
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin "v${TRIVY_VERSION}"
trivy --version
run: make ensure-trivy TRIVY_INSTALL_DIR=/usr/local/bin
- name: Update golden files
env:
+1 -4
View File
@@ -6,7 +6,6 @@ on:
workflow_dispatch:
env:
TRIVY_VERSION: 0.69.3
BATS_LIB_PATH: '/usr/lib/'
jobs:
@@ -38,9 +37,7 @@ jobs:
uses: bats-core/bats-action@42fcc8700f773c075a16a90eb11674c0318ad507 # 3.0.1
- name: Install Trivy
run: |
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v${{ env.TRIVY_VERSION }}
trivy --version
run: make ensure-trivy TRIVY_INSTALL_DIR=/usr/local/bin
- name: Test
env: