|
| 1 | +# Dependency Review Action |
| 2 | +# |
| 3 | +# This Action will scan dependency manifest files that change as part of a Pull Request, |
| 4 | +# surfacing known-vulnerable versions of the packages declared or updated in the PR. |
| 5 | +# Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable |
| 6 | +# packages will be blocked from merging. |
| 7 | +# |
| 8 | +# Source repository: https://github.com/actions/dependency-review-action |
| 9 | +# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement |
| 10 | +name: 'Dependency review' |
| 11 | +on: |
| 12 | + pull_request: |
| 13 | + branches: [ "master", "next" ] |
| 14 | + |
| 15 | +# If using a dependency submission action in this workflow this permission will need to be set to: |
| 16 | +# |
| 17 | +# permissions: |
| 18 | +# contents: write |
| 19 | +# |
| 20 | +# https://docs.github.com/en/enterprise-cloud@latest/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api |
| 21 | +permissions: |
| 22 | + contents: read |
| 23 | + # Write permissions for pull-requests are required for using the `comment-summary-in-pr` option, comment out if you aren't using this option |
| 24 | + pull-requests: write |
| 25 | + |
| 26 | +jobs: |
| 27 | + dependency-review: |
| 28 | + runs-on: ubuntu-latest |
| 29 | + steps: |
| 30 | + - name: 'Checkout repository' |
| 31 | + uses: actions/checkout@v4 |
| 32 | + - name: 'Dependency Review' |
| 33 | + uses: actions/dependency-review-action@v4 |
| 34 | + # Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options. |
| 35 | + with: |
| 36 | + comment-summary-in-pr: always |
| 37 | + # fail-on-severity: moderate |
| 38 | + # deny-licenses: GPL-1.0-or-later, LGPL-2.0-or-later |
| 39 | + # retry-on-snapshot-warnings: true |
0 commit comments