Merge pull request #90 from alphagov/bugfix/fix-dependency-review #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Dependency Review' | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| push: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| dependency-review: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout Repository' | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: 'Dependency Review' | |
| uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 #4.9.0 | |
| with: | |
| # If it's a PR, use the target branch. If it's a push, use 'main'. | |
| base-ref: ${{ github.event.pull_request.base.ref || 'main' }} | |
| # If it's a PR, use the source branch. If it's a push, use the current commit. | |
| head-ref: ${{ github.event.pull_request.head.ref || github.sha }} | |
| fail-on-severity: high | |
| show-patched-versions: true |