-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
add trivy image scanning #1663
add trivy image scanning #1663
Conversation
Thanks! This looks like a good addition for security scanning. Could you implement this as a partial workflow and add it only to the PR reviews? You can see the on:
workflow_call: And then include it in the pull-request.yml workflow. Making it dependent on the backend/frontend tests helps reduce unnecessary compute resources when the build fails anyways. |
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.
Thanks! This looks like a good addition for security scanning. Could you implement this as a partial workflow and add it only to the PR reviews? You can see the partial-backend.yml
workflow as an example on how to implement this. Basically you set the on
value as below
on:
workflow_call:
And then include it in the pull-request.yml workflow. Making it dependent on the backend/frontend tests helps reduce unnecessary compute resources when the build fails anyways.
Sorry about the double comment!
I think I restructured it as a partial as you requested but I'm not sure why the |
Also it looks like you've split into two services now, |
Yes, we'll be using both docker files for the foreseeable future. |
@hay-kot Apologies for the delay. I believe I've refactored to scan both the frontend and backend Dockerfiles. Take a look and let me know what you think. Cheers. |
What type of PR is this?
What this PR does / why we need it:
This adds support for Trivy container scanning as a Github Action. This can help with identifying security issues in underlying software, libraries, dependencies, etc.
Which issue(s) this PR fixes:
N/A
Testing
Review the Github Security tab and look at the
Code Scanning
section.Release Notes