Skip to content

feat: mention advisories that have warnings as part of validation#105

Merged
G-Rath merged 1 commit into
mainfrom
validate/print-warnings
Jul 16, 2025
Merged

feat: mention advisories that have warnings as part of validation#105
G-Rath merged 1 commit into
mainfrom
validate/print-warnings

Conversation

@G-Rath

@G-Rath G-Rath commented Jul 9, 2025

Copy link
Copy Markdown
Collaborator

This should help make warnings in advisories stand-out especially for pull requests that add new advisories where the whole diff is just green - this makes use of GitHub Actions annotations (triggered by a log format) to add a visual element to each advisory:

image

For now it appears at the top of the file since it would be more work to try and determine the line number of the warnings properties, and I'm not sure it's worth doing that when ideally in the long-run we want to be working with the upstream to avoid warnings in the first place, but it's something we could explore later if desired or someone was bored 😄

@G-Rath G-Rath force-pushed the validate/print-warnings branch 5 times, most recently from 8da669e to 28277d6 Compare July 9, 2025 21:24
@G-Rath G-Rath force-pushed the validate/print-warnings branch from 28277d6 to 47915c1 Compare July 9, 2025 21:24
@G-Rath G-Rath marked this pull request as ready for review July 9, 2025 21:27

@Unifex Unifex left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ah! This isn't what I was meaning when highlighting skipping/patching/etc. I was meaning highlighting extra info in the generate_osv_advisories.py script. This would give an easy visual reference to the SA URLs that have the issues.

This works though too and I've added the script to my local checks.

LGTM.

@G-Rath G-Rath merged commit d0c8168 into main Jul 16, 2025
9 checks passed
@G-Rath G-Rath deleted the validate/print-warnings branch July 16, 2025 21:30
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.

4 participants