A small repository to provide example GitHub workflows that demonstrate issues with using the https://github.com/aquasecurity/setup-trivy action.
Essentially since they introduced the setup action it no longer avoids repeated work, so if you call https://github.com/aquasecurity/trivy-action more than once in your workflow you get Trivy installed multiple times which is wasted effort and could lead to hitting rate limiting errors.
There are several example workflows in this repository:
setup-trivy-indirect.yml
which only calls the maintrivy-action
but demonstrates thatsetup-trivy
is getting called multiple times as a resultsetup-trivy-only-latest.yml
which callssetup-trivy
directly and demonstrates that if called multiple timestrivy
is installed multiple times.- There are also variants with
-v0.1.0
and-v0.2.0
suffixes that test those specific versions of thesetup-trivy
action - The
-fixed
suffix demonstrates a proposed fix found in my personal fork of thesetup-trivy
action
- There are also variants with