File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1818 fetch-depth : 0
1919
2020 - name : " Checkout Target Branch"
21- run : git checkout ${{ github.base_ref }}
22- shell : bash
21+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
22+ with :
23+ ref : ${{ github.base_ref }}
2324
2425 - name : " Scan Target Branch"
2526 uses : aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # 0.29.0
3536 scan-ref : .
3637 severity : ${{ inputs.severities }}
3738
38- - name : " Checkout current branch"
39- run : git checkout -f $GITHUB_SHA
40- shell : bash
39+ - name : Checkout current commit
40+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
41+ with :
42+ ref : ${{ github.sha }}
43+ clean : false
4144
4245 - name : " Scan Current Branch"
4346 uses : aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # 0.29.0
You can’t perform that action at this time.
0 commit comments