dependency-review.yml 1.1 KB

12345678910111213141516171819202122232425262728293031
  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: [pull_request]
  11. permissions:
  12. contents: read
  13. jobs:
  14. dependency-review:
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Harden the runner (Audit all outbound calls)
  18. uses: step-security/harden-runner@b09bb98e06d4d774595224525879c09bc6e98c40 # v2.20.1
  19. with:
  20. egress-policy: audit
  21. - name: 'Checkout Repository'
  22. uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
  23. with:
  24. persist-credentials: false
  25. - name: 'Dependency Review'
  26. uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v4
  27. with:
  28. allow-ghsas: GHSA-gcjh-h69q-9w9g