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

docs: add usage info about action/cache for trivy databases #397

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

DmitriyLewen
Copy link
Contributor

@DmitriyLewen DmitriyLewen commented Oct 3, 2024

Description

Due to the large number of TOOMANYREQUESTS errors - it makes sense to use cache
Add information on how to use action/cache

Test runs:

@DmitriyLewen DmitriyLewen changed the title docs: add usage info about action/cache to trivy-db docs: add usage info about action/cache for trivy-db Oct 3, 2024
@knqyf263
Copy link
Contributor

knqyf263 commented Oct 3, 2024

How about trivy-java-db?

@DmitriyLewen
Copy link
Contributor Author

I think there is no point in adding an example for each database, but I wrote about trivy-java-db and trivy-checks.
097bbad

@DmitriyLewen DmitriyLewen changed the title docs: add usage info about action/cache for trivy-db docs: add usage info about action/cache for trivy databases Oct 3, 2024
Comment on lines +169 to +173
## Trivy-db uses `0600` permissions.
## But `action/cache` use `runner` user by default
## So we need to change the permissions before caching the database.
- name: change permissions for trivy.db
run: sudo chmod 0644 ./cache/db/trivy.db
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we change perms prior to running Trivy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are 2 possible cases:

@simar7 simar7 merged commit 1b8b83d into aquasecurity:master Oct 8, 2024
2 checks passed
@DmitriyLewen DmitriyLewen deleted the docs/cache-trivy-db branch October 8, 2024 05:11
knqyf263 pushed a commit to knqyf263/trivy-action that referenced this pull request Oct 8, 2024
…curity#397)

* docs: add info about using `action/cache` for `trivy-db`

* docs: add info about trivy-java-db and trivy-checks
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

Successfully merging this pull request may close these issues.

3 participants