Skip to content

Commit

Permalink
redirect output
Browse files Browse the repository at this point in the history
  • Loading branch information
paologalligit committed Sep 27, 2024
1 parent 5293b0f commit d7f2ee0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gosec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ on:
jobs:
gosec:
runs-on: ubuntu-latest
continue-on-error: true
env:
GO111MODULE: on
outputs:
gosec-output: ${{ steps.gosec-run.outputs }}
gosec-output: ${{ steps.gosec-run.outputs.gosec-output }}
steps:
- name: Checkout Source
uses: actions/checkout@v4
Expand All @@ -23,11 +24,10 @@ jobs:
id: gosec-run
uses: securego/gosec@master
with:
# args: '-exclude=G104,G115,G304,G406,G507 -exclude-dir=builtin/gen ./...'
args: '-fmt json -exclude=G104,G115,G304,G406,G507 ./...'
- name: Capture Gosec Output
if: failure()
run: echo "${{ fromJson(needs.gosec-run.outputs) }}"
run: echo "gosec-output=$(echo "${{ steps.gosec-run.outputs.issues }}" | base64 -w 0)" >> $GITHUB_OUTPUT

notify-slack:
name: Notify Slack
Expand Down

0 comments on commit d7f2ee0

Please sign in to comment.