Fix vulnerability scanner not working in the GitHub actions CI and make it less strict #772
+7
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
In this PR, we make the vulnerability scanner less strict by accepting newer versions of docker images if they have less or equal vulnerabilities to the current version (while currently we only accept if they have strictly less vulnerabilities).
Also in this PR, we fix
org.graalvm.internal.tck.GrypeTask#getAllowedImagesFromMasternot working in the GitHub actions CI. Previously, whenever this method is reached in the CI, the task would fail with:fatal: invalid object name 'master'.. This happens because themasterbranch does not exist in the CI, whileorigin/masterdoes. The change in this PR just made it so we check theorigin/masterwhen we fetch allowed images.Fixes: #770