agentleFS
NVIDIAKnown publisherNVIDIA/NVSentinel/skills/openvex/prune-openvex-statements/SKILL.md

prune-openvex-statements

Skill452 starsChanged 3 months agoApache-2.0View on GitHub

Remove the OpenVEX statements of .openvex.json that no longer match the NVSentinel images, after a base image or a dependency changed. Scans the published images and drops each package that an image no longer has, as SECURITY.md requires. Use this after base image or dependency updates, and before triaging new findings.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use it after base image or dependency updates, for example a merged Dependabot pull request, and before triage-image-vulnerabilities.

    line 17
  2. Distinctive:

    Remove the packages that the scans no longer report:

    line 35
  3. Distinctive:

    Check the removals. A package leaves a statement when the image has another version of it, or no longer has it.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Prune OpenVEX Statements

When to use

Each statement names the exact package versions it covers. When a base image or a dependency update replaces a package, its statement no longer matches anything, but it stays in .openvex.json. Add a Statement in SECURITY.md says to remove it. This skill does that.

Use it after base image or dependency updates, for example a merged Dependabot pull request, and before triage-image-vulnerabilities.

Inputs

  • The images to check. Scan every image that a statement names, from the same publish, for example the latest publish from main. scripts/published-images.sh main-<short commit> lists them. Scan every tag of an image, for example the DCGM 3.x and 4.x tags of gpu-health-monitor. A statement covers all tags, and prune removes the packages that no scanned tag has.
  • Docker, jq and yq.

Steps

  1. Scan the images into a new directory, so that no report of an earlier tag remains in it:

    out=$(mktemp -d)
    scripts/openvex/scan.sh -o "${out}" IMAGE...

    For each image, NAME.json in the directory has every finding without the document, including the findings that have no fix.

  2. Remove the packages that the scans no longer report:

    python3 scripts/openvex/statements.py prune "${out}"/*.json
    make openvex-lint

    The script skips the NAME.vex.json files, because a scan with the document leaves out the findings without a fix. It changes only the products of the scanned images, so an image that you did not scan keeps its statements. It removes products and statements that have nothing left, prints each package it removes, and sets the version of the document to one more than on origin/main.

  3. Check the removals. A package leaves a statement when the image has another version of it, or no longer has it. If the new version still has the vulnerability, the scan of step 1 reports it as a new finding, and triage-image-vulnerabilities decides about it again.
  4. Open a pull request with .openvex.json. Its description lists the removed packages and the image tags that were scanned.

Output

Report:

  • the image tags that were scanned
  • the packages and statements removed
  • the critical and high findings that step 1 reports with the document

Next skill to run

  • triage-image-vulnerabilities, when step 1 reports critical or high findings with the document

References

TopicReference
Policy and fields (source of truth)SECURITY.md
Scriptsscripts/openvex/
Image list of a publishscripts/published-images.sh

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.