Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to clean the caches #372

Open
VictorDelCampo opened this issue Jul 10, 2024 · 2 comments
Open

How to clean the caches #372

VictorDelCampo opened this issue Jul 10, 2024 · 2 comments

Comments

@VictorDelCampo
Copy link

Before the last release we could reset the caches by passing an environment variable like:

      - name: Remove all caches and database of the trivy scanner
        uses: aquasecurity/trivy-action@d9cd5b1c23aaf8cb31bb09141028215828364bbb
        env:
          TRIVY_RESET: true
        with:
          scan-type: "image"

But now this --reset flag is not longer there and there is only now the utility command

trivy clean --all

But there is no option to pass this information as an environment variable.

How can I clean the caches using the github action? Thanks!

@simar7
Copy link
Member

simar7 commented Jul 11, 2024

@VictorDelCampo thanks for the question, we will get back to you on this.

@simar7
Copy link
Member

simar7 commented Jul 12, 2024

Looks like we will need to add this in as a feature for Trivy-action as currently there's no possible way from the action to clear the cache.

kiwikern added a commit to digitalservicebund/ris-backend-service that referenced this issue Jul 17, 2024
RISDEV-0000
--reset flag was removed and replaced by --clean all, but there is no equivalent for the github action yet.
see aquasecurity/trivy-action#372
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants