Merge pull request #1424 from Ganiredi/automated-cherry-pick-of-#1399… #1725
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: | |
| push: | |
| branches: | |
| - master | |
| - 'release-*' | |
| pull_request: | |
| workflow_dispatch: | |
| inputs: | |
| head_ref: | |
| description: 'HEAD git reference (tag/branch/commit) to analyze' | |
| required: true | |
| default: 'master' | |
| type: string | |
| base_ref: | |
| description: 'Base git reference (tag/branch/commit) to compare against head_ref' | |
| required: true | |
| default: 'master' | |
| type: string | |
| permissions: | |
| contents: read | |
| jobs: | |
| dependency-review: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout Repository" | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| show-progress: false | |
| - name: "Dependency Review" | |
| uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0 | |
| with: | |
| base-ref: ${{ inputs.base_ref || github.event.pull_request.base.sha || 'master' }} | |
| head-ref: ${{ inputs.head_ref || github.event.pull_request.head.sha || github.ref }} | |
| govulncheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout Repository" | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| show-progress: false | |
| - id: govulncheck | |
| uses: golang/govulncheck-action@31f7c5463448f83528bd771c2d978d940080c9fd # master (post-v1.0.4 with pinned deps) | |
| with: | |
| go-version-file: go.mod | |
| - id: govulncheck-tests-e2e | |
| uses: golang/govulncheck-action@31f7c5463448f83528bd771c2d978d940080c9fd # master (post-v1.0.4 with pinned deps) | |
| with: | |
| go-version-file: tests/e2e/go.mod |