actions/Dependency Review

Prevent the introduction of dependencies with known vulnerabilities

View on GitHub

Trust Signals

Scorecard Score
Scorecard 6–8scored Jul 13, 2026
Maintenance Recency
Activelast commit Jul 3, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
repo-tokenToken for the repository. Can be passed in using `{{ secrets.GITHUB_TOKEN }}`.no${{ github.token }}
fail-on-severityDon't block PRs below this severity. Possible values are `low`, `moderate`, `high`, `critical`.no
fail-on-scopesDependency scopes to block PRs on. Comma-separated list. Possible values are 'unknown', 'runtime', and 'development' (e.g. "runtime, development")no
base-refThe base git ref to be used for this check. Has a default value when the workflow event is `pull_request` or `pull_request_target`. Must be provided otherwise.no
head-refThe head git ref to be used for this check. Has a default value when the workflow event is `pull_request` or `pull_request_target`. Must be provided otherwise.no
config-fileA path to the configuration file for the action.no
allow-licensesComma-separated list of allowed licenses (e.g. "MIT, GPL 3.0, BSD 2 Clause")no
deny-licensesComma-separated list of forbidden licenses (e.g. "MIT, GPL 3.0, BSD 2 Clause")no
allow-dependencies-licensesComma-separated list of dependencies in purl format (e.g. "pkg:npm/express, pkg:pypi/pycrypto"). These dependencies will be permitted to use any license, no matter what license policy is enforced otherwise.no
allow-ghsasComma-separated list of allowed GitHub Advisory IDs (e.g. "GHSA-abcd-1234-5679, GHSA-efgh-1234-5679")no
external-repo-tokenA token for fetching external configuration file if it lives in another repository. It is required if the repository is privateno
license-checkA boolean to determine if license checks should be performedno
vulnerability-checkA boolean to determine if vulnerability checks should be performedno
comment-summary-in-prDetermines if the summary is posted as a comment in the PR itself. Setting this to `always` or `on-failure` requires you to give the workflow `pull-requests: write` permissionsno
deny-packagesA comma-separated list of package URLs to deny (e.g. "pkg:npm/express, pkg:pypi/pycrypto"). If version specified, only deny matching packages and version; else, deny all regardless of version.no
deny-groupsA comma-separated list of package URLs for group(s)/namespace(s) to deny (e.g. "pkg:npm/express/, pkg:pypi/pycrypto/"). Please note that the group name must be followed by a `/`.no
retry-on-snapshot-warningsWhether to retry on snapshot warningsno
retry-on-snapshot-warnings-timeoutNumber of seconds to wait before stopping snapshot retries.no
warn-onlyWhen set to `true` this action will always complete with success, overriding the `fail-on-severity` parameter.no
show-openssf-scorecardShow a summary of the OpenSSF Scorecard scores.no
warn-on-openssf-scorecard-levelNumeric threshold for the OpenSSF Scorecard score. If the score is below this threshold, the action will warn you.no
show-patched-versionsWhen set to `true`, the vulnerability summary table will include a column showing the first patched version for each vulnerability.no
namedescription
comment-contentPrepared dependency report comment
dependency-changesAll dependency changes (JSON)
vulnerable-changesVulnerable dependency changes (JSON)
invalid-license-changesInvalid license dependency changes (JSON)
denied-changesDenied dependency changes (JSON)