agentleFS
sasky80sasky80/ado-reviewer/.github/skills/get-pr-dependency-advisories/SKILL.md

get-pr-dependency-advisories

Skill0 starsChanged 9 months agoApache-2.0View on GitHub

Scan changed dependency manifests in a PR and query GitHub Advisory Database for discovered dependencies automatically.

The file

Files
SKILL.md

Get PR Dependency Advisories

Platform Note

  • Clean-install path: use the Go command from .github/tools/skills-go.

Authentication

  • Azure DevOps PAT: ADO_PAT_<normalized_org>
  • GitHub PAT: GH_SEC_PAT

What it does

  1. Resolves source branch from PR metadata.
  2. Finds changed dependency manifest files in the selected PR iteration.
  3. Extracts dependencies from supported manifests.
  4. Queries https://api.github.com/advisories for each dependency.
  5. Returns one consolidated JSON report.

Supported changed manifests

  • package.json (dependencies, devDependencies, optionalDependencies, peerDependencies)
  • package-lock.json
  • requirements.txt
  • requirements-dev.txt
  • poetry.lock
  • go.mod
  • Cargo.lock

Arguments

#NameRequiredDescription
1organizationYesAzure DevOps organization
2projectYesProject name or ID
3repositoryIdYesRepository name or ID
4pullRequestIdYesPull request ID
5iterationIdNoPR iteration ID (defaults to latest)
6per_pageNoMax advisories per dependency query (1..100, default: 20)

Examples

go run ./.github/tools/skills-go/cmd/skills-go get-pr-dependency-advisories myorg MyProject MyRepo 42

Output

Returns compact JSON with:

  • manifestFiles
  • dependencies
  • advisories
  • dependenciesChecked
  • advisoriesFound
  • highOrCritical

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.