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

chore: [DevOps] Update OWASP Workflow #190

Merged
merged 8 commits into from
Nov 28, 2024
Merged

Conversation

MatKuhr
Copy link
Member

@MatKuhr MatKuhr commented Nov 25, 2024

Context

  • Enable the cache
  • Test the cache Currently not possible, cache needs to be on main branch, and API rate limits are still restricting us

@MatKuhr MatKuhr added the please-review Request to review a pull-request label Nov 26, 2024
@MatKuhr MatKuhr marked this pull request as ready for review November 26, 2024 12:10
@@ -7,6 +7,9 @@ on:
env:
MVN_MULTI_THREADED_ARGS: --batch-mode --no-transfer-progress --fail-at-end --show-version --threads 1C
JAVA_VERSION: 17
CVE_CACHE_KEY: cve-db
Copy link
Member Author

Choose a reason for hiding this comment

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

moved from separate workflow to this workflow, because we only need the DB in this job, and unifying them is more reliable

- name: Restore CVE Database
uses: actions/cache/restore@v4
with:
path: ${{ env.CVE_CACHE_DIR }}
key: ${{ env.CVE_CACHE_KEY }}
fail-on-cache-miss: true
# fail-on-cache-miss: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure how to feel about this change.

Question:

  • Did the logic succeed once? I.e. have you tested it to be working?

Otherwise LGTM

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a temporary change, needed because the cache needs to be initially created on main branch first

.github/workflows/fosstars-report.yml Outdated Show resolved Hide resolved
.github/workflows/fosstars-report.yml Outdated Show resolved Hide resolved
pom.xml Show resolved Hide resolved
.github/workflows/fosstars-report.yml Outdated Show resolved Hide resolved
MatKuhr and others added 4 commits November 27, 2024 14:46
Co-authored-by: Charles Dubois <103174266+CharlesDuboisSAP@users.noreply.github.com>
Co-authored-by: Charles Dubois <103174266+CharlesDuboisSAP@users.noreply.github.com>
@MatKuhr MatKuhr enabled auto-merge (squash) November 27, 2024 17:19
@MatKuhr MatKuhr merged commit d4abd9d into main Nov 28, 2024
5 checks passed
@MatKuhr MatKuhr deleted the chore/enable-owasp-cache branch November 28, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please-review Request to review a pull-request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants