Skip to content

Add validation script for vulnerability entries - #486

Open
vanhoangkha wants to merge 1 commit into
wiz-sec:mainfrom
vanhoangkha:contribution/add-validation-script
Open

Add validation script for vulnerability entries#486
vanhoangkha wants to merge 1 commit into
wiz-sec:mainfrom
vanhoangkha:contribution/add-validation-script

Conversation

@vanhoangkha

Copy link
Copy Markdown

Adds scripts/validate.py for contributors to validate entries locally before submitting PRs.

python3 scripts/validate.py                          # all entries
python3 scripts/validate.py vulnerabilities/foo.yaml # one entry

Checks: required fields, valid severity/entryStatus, known platforms, references.

scripts/validate.py checks entries for required fields, valid
severity/platform values, and reference URLs.

Usage: python3 scripts/validate.py [file...]
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.

1 participant