Repository navigation
Chadd/script updates - #10
Merged
Merged
Conversation
Signed-off-by: Chadd Owen <chaddowen59@gmail.com>
Signed-off-by: Chadd Owen <chaddowen59@gmail.com>
chaddowen59-coder
requested review from
astewart-anchore
and
a lite review from Copilot
August 25, 2026 19:18
There was a problem hiding this comment.
Pull request overview
Updates the utilities/vulndata helper scripts/documentation to support pulling full NVD vulnerability descriptions for both Anchore Enterprise 5.x (legacy /applications) and 6.x (/apps), clarifying configuration and adding a Python implementation for the 6.x API behavior.
Changes:
- Updated
vulndata.shcredential-loading behavior to reuseANCHORECTL_*environment variables when present, with ananchore.envfallback. - Added
vulndata_apps.pyto fetch CVE descriptions for Enterprise 6.x by chaining/appslookups with/query/vulnerabilities. - Replaced the prior minimal README and removed the tracked sample output file.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| utilities/vulndata/vulndata.sh | Reworks credential sourcing to prefer ANCHORECTL_* env vars and improves missing-credentials error handling. |
| utilities/vulndata/vulndata_apps.py | New Python script to retrieve full NVD descriptions for Enterprise 6.x app/version vulnerabilities. |
| utilities/vulndata/vulndata | Removes previously committed sample output data file. |
| utilities/vulndata/README.md | Adds version-specific usage docs for both scripts and explains configuration expectations. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+17
to
+18
| ANCHORE_URL="${ANCHORECTL_URL:-$ANCHORE_URL}" | ||
|
|
Comment on lines
+15
to
+16
| description text. This script chains three calls to get from an app/version | ||
| name to full descriptions: |
| lines = [header, f"Vulnerability Report for {args.app_name} {args.version_name}", header] | ||
| for vid in vuln_ids: | ||
| desc = descriptions.get(vid) or "(no description available)" | ||
| lines.append(f"{vid}: {desc}\n") |
|
|
||
| output = "\n".join(lines) | ||
| print(output) | ||
| with open(args.output, "w") as f: |
astewart-anchore
approved these changes
Aug 25, 2026
astewart-anchore
left a comment
Collaborator
There was a problem hiding this comment.
Looks good to me.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v5 and v6 vuln descriptions per app