Skip to content

ci: use setup-bats in bump-trivy workflow #254

ci: use setup-bats in bump-trivy workflow

ci: use setup-bats in bump-trivy workflow #254

Workflow file for this run

name: Test
on:
push:
pull_request:
workflow_dispatch:
env:
TRIVY_VERSION: 0.65.0
BATS_LIB_PATH: '/usr/lib/'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bats and bats libs
id: setup-bats
uses: bats-core/[email protected]
- 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
- name: Test
env:
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }}
run: make test