Skip to content

rvesse/setup-trivy-debugging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Setup Trivy Action Debugging

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 main trivy-action but demonstrates that setup-trivy is getting called multiple times as a result
  • setup-trivy-only-latest.yml which calls setup-trivy directly and demonstrates that if called multiple times trivy is installed multiple times.
    • There are also variants with -v0.1.0 and -v0.2.0 suffixes that test those specific versions of the setup-trivy action
    • The -fixed suffix demonstrates a proposed fix found in my personal fork of the setup-trivy action

About

A test repo for debugging issues with the setup-trivy action

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published