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

LGA-3336 - Use a cron job to update the trivy vulnerability db #55

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

said-moj
Copy link
Contributor

What does this pull request do?

Use a cron job to update the trivy vulnerability db.

Any other changes that would benefit highlighting?

This sets up a cron job to regularly update the cache in the default branch. This allows subsequent scans to use the cached DB without downloading it again

Based on https://github.com/aquasecurity/trivy-action?tab=readme-ov-file#updating-caches-in-the-default-branch

Checklist

  • Provided JIRA ticket number in the title, e.g. "LGA-152: Sample title"

Copy link
Contributor

@TawneeOwl TawneeOwl left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@digitalali-moj digitalali-moj left a comment

Choose a reason for hiding this comment

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

Nice work! thanks :)

@said-moj said-moj changed the title Use a cron job to update the trivy vulnerability db LGA-3336 - Use a cron job to update the trivy vulnerability db Nov 19, 2024
@said-moj said-moj merged commit e3b4b5d into main Nov 19, 2024
@said-moj said-moj deleted the trivy-db-update-cron-job branch November 19, 2024 15:44
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