Skip to content

[REST] Get a diff of the dependencies between commits doesn't mention you have to enable it #22555

Closed
@jsoref

Description

@jsoref

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/rest/dependency-graph/dependency-review?apiVersion=2022-11-28#get-a-diff-of-the-dependencies-between-commits

What part(s) of the article would you like to see updated?

The content should explain that you might have to enable the feature and if so under what conditions.

Additional information

https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review
claims:

Dependency review is enabled on public repositories. Dependency review is also available in private repositories owned by organizations that use GitHub Enterprise Cloud and have a license for GitHub Advanced Security. For more information, see "About GitHub Advanced Security."

This appears to be at best misleading.

% curl -s -S https://":$GH_TOKEN"@api.github.com/repos/actions/dependency-review-action/dependency-graph/compare/3e6e055a2667e41051d1e7c2ab239bfba84d652f...d8b4cd80d50fc9d67a9f771c7dd5c2eb76d6d608 | head -5
[
  {
    "change_type": "added",
    "manifest": "package-lock.json",
    "ecosystem": "npm",
% curl -s -S https://":$GH_TOKEN"@api.github.com/repos/jsoref/dependency-review-action/dependency-graph/compare/3e6e055a2667e41051d1e7c2ab239bfba84d652f...d8b4cd80d50fc9d67a9f771c7dd5c2eb76d6d608 | head -5
{
  "message": "Forbidden",
  "documentation_url": "https://docs.github.com/rest"
}

https://github.com/jsoref/dependency-review-action/network/dependencies

image

I have no idea if it's disabled because it's a fork or because of an org policy or .... The repository is a public fork of a public repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code securityContent related to code securitycontentThis issue or pull request belongs to the Docs Content teamrestContent related to rest - overview.waiting for reviewIssue/PR is waiting for a writer's review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions