Skip to content

Commit

Permalink
WIP: example gh changes
Browse files Browse the repository at this point in the history
Signed-off-by: Will Murphy <[email protected]>
  • Loading branch information
willmurphyscode committed Dec 8, 2023
1 parent 7691244 commit c9aaa56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/vunnel/providers/nvd/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _unwrap_records(self, response: dict[str, Any]) -> Generator[tuple[str, dict
year = cve_id.split("-")[1]
yield os.path.join(year, cve_id), vuln

def _get_ovverides_for_id(self, vuln_id: str) -> dict:
def _get_ovverides_for_id(self, vuln_id: str) -> dict[str, Any]:
override_path = os.path.join("transforms", "nvd", f"{vuln_id}.json".lower())
changes = {}
try:
Expand Down
8 changes: 8 additions & 0 deletions transforms/github/changes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# pretend the following PRs were merged
include-prs:
- https://github.com/github/advisory-database/pull/2630

# assuming the following GHSAs were reviewed, even if they
# are not returned by the API
assume-reviewed:
- GHSA-some-asdf

0 comments on commit c9aaa56

Please sign in to comment.