| 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, |
| 6 |
# PRs introducing known-vulnerable packages will be blocked from merging. |
| 7 |
# |
| 8 |
# Source repository: https://github.com/actions/dependency-review-action |
| 9 |
name: 'Dependency Review' |
| 10 |
on: |
| 11 |
pull_request: |
| 12 |
branches: [ master ] |
| 13 |
|
| 14 |
permissions: |
| 15 |
contents: read |
| 16 |
|
| 17 |
jobs: |
| 18 |
dependency-review: |
| 19 |
runs-on: ubuntu-latest |
| 20 |
steps: |
| 21 |
- name: Harden Runner |
| 22 |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 |
| 23 |
with: |
| 24 |
egress-policy: audit |
| 25 |
|
| 26 |
- name: 'Checkout Repository' |
| 27 |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 28 |
- name: 'Dependency Review' |
| 29 |
uses: actions/dependency-review-action@9129d7d40b8c12c1ed0f60400d00c92d437adcce # v4.1.3 |