Skip to content

Commit

Permalink
break two cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zpavlinovic committed Apr 17, 2024
1 parent fa11f5c commit d4ba64e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/govulncheck/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ runs:
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@a7188c690e1d
shell: bash
- name: Run govulncheck
id: govulncheck
- if: inputs.output-file == ''
name: Run govulncheck
run: govulncheck -C ${{ inputs.work-dir }} -format ${{ inputs.output-format }} ${{ inputs.go-package }}
shell: bash
- if: inputs.output-file != ''
name: Run govulncheck with redirect
run: govulncheck -C ${{ inputs.work-dir }} -format ${{ inputs.output-format }} ${{ inputs.go-package }} > ${{ inputs.output-file }}
shell: bash
run: echo ${{ steps.govulncheck.outputs.stdout }} > ${{ inputs.output-file }}

0 comments on commit d4ba64e

Please sign in to comment.