-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If a user is invoking the action multiple times then the trivy binary gets installed multiple times. Users can avoid this by managing the installation themselves and setting the skip-setup input to true, or by letting the action install in on their first invocation and then setting skip-setup to true on subsequent invocations
- Loading branch information
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,11 +103,18 @@ inputs: | |
description: 'Used to specify whether caching is needed. Set to false, if you would like to disable caching.' | ||
required: false | ||
default: 'true' | ||
skip-setup: | ||
description: | | ||
Used to disable installing the trivy binary. Set to true if you have already installed the binary by other means, | ||
or are invoking this action multiple times in your workflow and want to avoid repeatedly installing it. | ||
required: false | ||
default: 'false' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Install Trivy | ||
if: ${{ inputs.skip-setup == 'false' }} | ||
uses: aquasecurity/[email protected] | ||
with: | ||
version: ${{ inputs.version }} | ||
|