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

show-fixed-kernel-cve: use Python interpreter #163

Merged
merged 2 commits into from
Aug 29, 2024
Merged

Conversation

tormath1
Copy link
Contributor

Without this it makes 'scripts' calls failing.


I noticed well after that this script is actually called from show-changes

Without this it makes 'scripts' calls failing.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@tormath1 tormath1 self-assigned this Aug 28, 2024
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@tormath1 tormath1 marked this pull request as ready for review August 28, 2024 14:43
@tormath1 tormath1 requested a review from a team August 28, 2024 14:43
@@ -102,4 +104,4 @@ def fixed_linux_cves(f, t):

cves = fixed_linux_cves(Version(options.from_version), Version(options.to_version))
if len(cves) > 0:
print(f"- Linux ({cves})")
Copy link
Member

Choose a reason for hiding this comment

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

Why are we dropping the - Linux here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question :D I discovered yesterday that this script is actually used in our CI and it's called via show-changes here:

KERNEL_ENTRIES=$("${SCRIPTFOLDER}"/show-fixed-kernel-cves.py -f "${FROM_KERNEL}" -t "${TO_KERNEL}")
if [ "${KERNEL_ENTRIES}" != "" ]; then
echo "- Linux (${KERNEL_ENTRIES})"

The - Linux (...) is already present in this case, and I minimize the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants