telicent-oss/Trivy Scan Action

This action scans a filesystem/SBOM/Container Image using Trivy

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
scan-refThe reference to the filesytem path, SBOM file, or container image to scan yes
scan-nameA unique name for the scan to disambiguate the Job Artifacts it creates from others created by the same workflow. Note that the given `scan-name` value will be sanitised to remove characters that are not permitted by the actions that consume this value. You can find the actual names used for the report files and artifacts in the action output. yes
scan-typeSpecifies the kind of Trivy scan to perform, one of `image`, `fs` or `sbom`. Other values are not currently supported and will cause the action to fail. yes
remote-vexSpecifies a new line separated list of remote repositories whose VEX statements should be retrieved via sparse checkout of their .vex/ directory. These VEX statements will be used to augment any local VEX statements in the .vex/ directory when scanning for vulnerabilities. no""
gh-tokenA GitHub Token needed to determine the current Trivy database version for caching. Defaults to `github.token` which is the token for this build, can be overridden if this default token doesn't work for your build environment. no${{ github.token }}
gh-userA GitHub User to use when cloning remote repositories to retrieve remote VEX statements. Defaults to `github.actor` which is the user running the build, can be overridden if this default user does not match the user who owns the `gh-token` input e.g. if providing a custom GitHub Token to retrieve VEX statements from private repositories. no${{ github.actor }}
uses-javaIndicates whether the scan needs the Trivy Java Database available. nofalse
allow-unfixedSpecifies whether it is permitted for the action to pass if it detects High/Critical vulnerabilities that do not currently have a fix i.e. there is not necessarily anything we could do to resolve them at this time. nofalse
output-sbomWhen specified this provides a filename prefix and the action will additionally output a CycloneDX JSON format SBOM based on the artifacts being scanned. Note that this filename will be combined with the provided `scan-name` input to ensure a unique filename. Please refer to the `sbom-file` output to find the actual output filename. no""
namedescription
scan-resultsThe name of a GitHub Actions Artifact that has been uploaded by this action and contains the full Trivy JSON scan results generated by the Trivy scan.
scan-results-fileThe name of the Trivy JSON results file contained in the uploaded GitHub Actions artifact. This file will also exist in the `RUNNER_TEMP` directory for the duration of the calling job.
scan-results-urlThe URL of the GitHub Actions Artifact that has been uploaded by this action and contains the full Trivy JSON scan results generated by the Trivy Scan.
sbomThe name of a GitHub Actions Artifact that has been uploaded by this action and contains a CycloneDX JSON format SBOM generated by Trivy.
sbom-fileThe name of the SBOM file, this will be a combination of the `scan-name` and `output-sbom` inputs. This file will also exist in the `RUNNER_TEMP` directory for the duration of the calling job.
sbom-urlThe URL of the GitHub Actions Artifact that has been uploaded by this action and contains the full Trivy generated CycloneDX JSON format SBOM.