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 e6d9f5d commit ed1542c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/gosec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Gosec
on:
# schedule:
# # This is meant to run every day at 9am
# - cron: '0 9 * * *'
# - cron: '1-5'
push:

jobs:
Expand All @@ -11,7 +11,7 @@ jobs:
env:
GO111MODULE: on
outputs:
gosec-output: ${{ steps.gosec-run.outputs.gosec-output }}
gosec-output: ${{ steps.gosec-run.outputs }}
steps:
- name: Checkout Source
uses: actions/checkout@v4
Expand All @@ -27,8 +27,7 @@ jobs:
args: '-fmt json -exclude=G104,G115,G304,G406,G507 ./...'
- name: Capture Gosec Output
if: failure()
continue-on-error: true
run: echo "gosec-output=$(echo "${{ steps.gosec-run.outputs.gosec-output }}")" >> $GITHUB_OUTPUT
run: echo "gosec-output=$(echo "${{ steps.gosec-run.outputs }}")" >> $GITHUB_OUTPUT

notify-slack:
name: Notify Slack
Expand Down

0 comments on commit ed1542c

Please sign in to comment.