Skip to content

test(trivy-install): v0.56.0 + cache + default path #82

test(trivy-install): v0.56.0 + cache + default path

test(trivy-install): v0.56.0 + cache + default path #82

name: trivy-install
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install trivy
uses: DmitriyLewen/setup-trivy@817844449d9ae5108993e6eef53e40e4bca09b20
with:
version: v0.56.0
cache: true
- name: Test trivy run
shell: bash
run: |
trivy -v
ls -ahl ~
ls -ahl ~/.local
ls -ahl ~/.local/bin
ls -ahl ~/.local/bin/trivy-bin