Skip to content

Commit

Permalink
fix step for setting environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zpavlinovic committed Apr 17, 2024
1 parent 4760ca4 commit faea06f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/govulncheck/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ runs:
run: go install golang.org/x/vuln/cmd/govulncheck@a7188c690e1d
shell: bash
- if: inputs.output-file != ''
shell: bash
env:
redirect-output: '> ${{ inputs.output-file }}'
- name: Run govulncheck
run: govulncheck -C ${{ inputs.work-dir }} -format ${{ inputs.output-format }} ${{ inputs.go-package }} $redirect_output
run: govulncheck -C ${{ inputs.work-dir }} -format ${{ inputs.output-format }} ${{ inputs.go-package }} $redirect-output
shell: bash

0 comments on commit faea06f

Please sign in to comment.