-
Notifications
You must be signed in to change notification settings - Fork 154
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
Split published and example images vulnerability scanning #2914
Conversation
b59a741
to
7a282cf
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.
At a high-level, LGTM.
See nitty comments
@@ -0,0 +1,17 @@ | |||
name: Published images vulnerability scanning |
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.
nit: Should the name for this workflow be different in order to more easily tell it apart when looking at all the (action) jobs.
Also, a shorter name would be nice.
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.
Yes. It's supposed to be different.
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | ||
echo "images_json<<$EOF" >> $GITHUB_OUTPUT | ||
cat ${{ inputs.images_file }} >> $GITHUB_OUTPUT | ||
echo "$EOF" >> $GITHUB_OUTPUT |
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.
What's this code doing actually? (Maybe a comment would be good)
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.
I left some comments. Generally, it would be good to have a more descriptive name than example-images
. What would be the use for the split? It seems the listed images are possibly 3rd party images
Example images are images that we use in the examples. I don't have a better description for that honestly.
Maybe, but it's not clear how to address those. We can change the flag and see how many issues we get then. |
a563e42
to
dec97ba
Compare
dec97ba
to
8d94f5f
Compare
@psilva-veeam IOW: the objective is to facilitate or improve the identification of (vulnerability) notifications that are in the packaged (released "product") Kanister images in order to prioritize those first, over vulnerabilities that are only present in example images. |
@hairyhum @psilva-veeam Let's merge these changes as they are. We can iterate and address the comments as separate PRs. Thanks. |
I'm still enabling |
Change Overview
The idea behind this change is to separate critical and non-critical images scanning. So we can set up notifications when critical images have vulnerabilities.
This PR just separates the scanning workflow. #2829 will separate the image build workflow.
Future improvement: after #2829 is merged, we can trigger example image scanning on example images build workflow instead of main.
Pull request type
Please check the type of change your PR introduces:
Issues
Test Plan