Skip to content

Commit 8da669e

Browse files
committed
ci: try with a line number
1 parent dcc125c commit 8da669e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/validate_advisories.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ def has_database_specific_warnings(vuln: osv.Vulnerability) -> bool:
5050

5151
if has_database_specific_warnings(data):
5252
if 'CI' in os.environ:
53-
print(f'::warning file={advisory_filepath}::has warnings')
53+
print(
54+
f'::warning file={advisory_filepath},line=1::has warnings that should be reviewed and patched if possible'
55+
)
5456
print(f'⚠️ {advisory_filepath} is valid with warnings')
5557
elif report_valid:
5658
print(f'✅ {advisory_filepath} is valid')

0 commit comments

Comments
 (0)