Skip to content

Chadd/script updates - #10

Merged
chaddowen59-coder merged 2 commits into
mainfrom
chadd/script-updates
Aug 26, 2026
Merged

chaddowen59-coder merged 2 commits into
mainfrom
chadd/script-updates

Conversation

@chaddowen59-coder

Copy link
Copy Markdown
Collaborator

v5 and v6 vuln descriptions per app

Signed-off-by: Chadd Owen <chaddowen59@gmail.com>
Signed-off-by: Chadd Owen <chaddowen59@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.sh credential-loading behavior to reuse ANCHORECTL_* environment variables when present, with an anchore.env fallback.
  • Added vulndata_apps.py to fetch CVE descriptions for Enterprise 6.x by chaining /apps lookups 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 astewart-anchore 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.

Looks good to me.

@chaddowen59-coder
chaddowen59-coder merged commit 3d74a39 into main Aug 26, 2026
2 checks passed
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.

3 participants