Skip to content

test(setup-trivy): token with read only perms #135

test(setup-trivy): token with read only perms

test(setup-trivy): token with read only perms #135

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@34d9f0ee0ca364ca9f822843050fb1013babdb58
with:
version: v0.56.2
token: ${{ secrets.READ_PAT }}
- name: Test trivy run
shell: bash
run: trivy -v