File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 11name : " Dependency Review"
2- on : [push, pull_request, workflow_dispatch]
2+ on :
3+ push :
4+ branches :
5+ - main
6+ - ' release-*'
7+ pull_request :
8+ workflow_dispatch :
9+ inputs :
10+ head_ref :
11+ description : ' HEAD git reference (tag/branch/commit) to analyze'
12+ required : true
13+ default : ' main'
14+ type : string
15+ base_ref :
16+ description : ' Base git reference (tag/branch/commit) to compare against head_ref'
17+ required : true
18+ default : ' main'
19+ type : string
320permissions :
421 contents : read
522jobs :
1128 with :
1229 show-progress : false
1330 - name : " Dependency Review"
14- uses : actions/dependency-review-action@v3
31+ uses : actions/dependency-review-action@v4
32+ with :
33+ base-ref : ${{ inputs.base_ref || github.event.pull_request.base.sha || 'main' }}
34+ head-ref : ${{ inputs.head_ref || github.event.pull_request.head.sha || github.ref }}
1535 govulncheck :
1636 runs-on : ubuntu-latest
1737 steps :
You can’t perform that action at this time.
0 commit comments