Skip to content

suzuki-shunsuke/trivy-config-action

Repository files navigation

trivy-config-action

GitHub Actions for trivy config command

image

--

image

Run trivy config and notify the result with reviewdog and github-comment.

This GitHub Actions does not install trivy and reviewdog, so you have to install them in advance. It allows to install tools outside this action. aqua is useful to install them.

Requirements

Usage

- uses: suzuki-shunsuke/trivy-config-action@main
  with:
    github_token: ${{github.token}}
    working_directory: foo
    github_comment: 'true'
    config_path: 'bar/trivy.yaml

Inputs

Required Inputs

Nothing.

Optional Inputs

name default value description
github_token github.token GitHub Access Token
working_directory "" (current directory) Woring Directory
github_comment false Whether a comment is posted with github-comment
config_path trivy.yaml Path to trivy config file

Outputs

Nothing.

LICENSE

MIT