-
Notifications
You must be signed in to change notification settings - Fork 295
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
ci(trivy): fix scan failures due to TOOMANYREQUESTS DB error #3659
ci(trivy): fix scan failures due to TOOMANYREQUESTS DB error #3659
Conversation
ba179c3
to
6cb6a17
Compare
Looks fine, but I'd rather have a separate "weekly" job triggered by cron (https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule), it will be easier to see and add new weekly jobs, and it doesn't convolute our CI job with more prerequisites. @petermetz any thoughts? |
6cb6a17
to
7b88789
Compare
@outSH Can't say I disagree. I would love to remove the code from the diff that calculates the day of the week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aldousalvarez Looks good in general, but please incorporate the change request from @outSH
7b88789
to
a4d7a7e
Compare
a4d7a7e
to
6848595
Compare
Hello @petermetz and @outSH, done with the requested changes and incorporated it. Re-requested for review. Thank you |
11063bb
to
88be4d0
Compare
88be4d0
to
55a86d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
55a86d1
to
597cf11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aldousalvarez On second thought, are you sure you didn't just disable running ci.yaml in pull requests completely? I noticed after a rebase that the jobs are not running at all. Could be a coincidence but it could also be that the new scheduling overrides the other declarations that make it so that ci.yaml should run for each PR? Could you please double check the github docs?
@petermetz Okay, I will take a look into this. I think the scheduled workflow will only run on the default branch so I will test it on my fork. |
@aldousalvarez Thank you! As I'm typing this, the checks on this PR are still stuck in 'waiting for status to be reported' so it is looking more and more like the schedule is having some sort of negative side effect here (I'd love to be wrong here though)
|
597cf11
to
5c643ef
Compare
@petermetz It is now working. What I did was I cleaned the code and added the changes again, I think it is some lint error or whitespaces that is why it did not read the condition from before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aldousalvarez Got it, thank you!
Primary Changes ---------------- 1. Updated the ci.yaml to make the trivy scan run only on the weekends Fixes hyperledger-cacti#3652 Signed-off-by: aldousalvarez <[email protected]>
5c643ef
to
97b727c
Compare
Commit to be reviewed
ci(trivy): fix scan failures due to TOOMANYREQUESTS DB error
Fixes #3652
Pull Request Requirements
upstream/main
branch and squashed into single commit to help maintainers review it more efficient and to avoid spaghetti git commit graphs that obfuscate which commit did exactly what change, when and, why.-s
flag when usinggit commit
command. You may refer to this link for more information.Character Limit
A Must Read for Beginners
For rebasing and squashing, here's a must read guide for beginners.