Get a diff of the dependencies between commits
Changed onGets the diff of the dependency changes between two commits of a repository, based on the changes to the dependency manifests made in those commits.
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/repos/{owner}/{repo}/dependency-graph/compare/{basehead}
- Auth: none declared
Path parameters
The account owner of the repository. The name is not case sensitive.
The name of the repository without the .git extension. The name is not case sensitive.
The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their corresponding HEAD commits, and an appropriate merge base will be determined. This parameter expects the format {base}...{head}.
Query parameters
The full path, relative to the repository root, of the dependency manifest file.
Response
Response
Example response
[
{
"manifest": "path/to/package-lock.json",
"ecosystem": "npm",
"name": "@actions/core",
"version": "1.0.0",
"package_url": "pkg:/npm/%40actions/core@1.1.0",
"license": "MIT",
"source_repository_url": "https://github.com/github/actions",
"vulnerabilities": [
{
"severity": "critical",
"advisory_ghsa_id": "GHSA-rf4j-j272-fj86",
"advisory_summary": "A summary of the advisory.",
"advisory_url": "https://github.com/advisories/GHSA-rf4j-j272-fj86"
}
]
}
]Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info