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

refactor: CVE Caching #204

Merged
merged 6 commits into from
Mar 26, 2024
Merged

refactor: CVE Caching #204

merged 6 commits into from
Mar 26, 2024

Conversation

Johannes-Schneider
Copy link
Contributor

@Johannes-Schneider Johannes-Schneider commented Mar 26, 2024

Context

This PR refactors how the caching of the Vulnerability (i.e. CVE) database works.

Previously (without the suggested changes), we are trying to update the database on every build pipeline run.
This approach, however, leads to a dead lock due to (most probably) the matrix build we are using.

To fix this issue, we are now introducing one workflow (the Update Vulnerabilities Database one) that runs on a fixed schedule and replaces the existing GH actions cache with an updated version.
Build pipeline runs will then use this cache (or fail if the cache isn't present) and skip updating the vulnerability database.

This drastically increases the build pipeline runtime.

@Johannes-Schneider Johannes-Schneider added do not review This PR is not ready to be reviewed. do not merge This PR is not ready to be merged. labels Mar 26, 2024
@Johannes-Schneider Johannes-Schneider added please review This PR is ready to be reviewed. please merge This PR ready to be merged. and removed do not review This PR is not ready to be reviewed. do not merge This PR is not ready to be merged. labels Mar 26, 2024
@Johannes-Schneider Johannes-Schneider marked this pull request as ready for review March 26, 2024 15:18
@Johannes-Schneider Johannes-Schneider merged commit 2ba7575 into main Mar 26, 2024
8 checks passed
@Johannes-Schneider Johannes-Schneider deleted the refactor/cve-caching branch March 26, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please merge This PR ready to be merged. please review This PR is ready to be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants