Skip to content

Commit

Permalink
fix: bad yaml file formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
paologalligit committed Sep 27, 2024
1 parent 7bb578f commit 340fcb7
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/gosec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ jobs:
if: failure()
run: echo "gosec-output=$(echo "${{ steps.gosec-run.outputs.issues }}" | base64 -w 0)" >> $GITHUB_OUTPUT

notify-slack:
name: Notify Slack
needs:
- gosec
if: always() && needs.gosec.result != 'success'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
notify-slack:
name: Notify Slack
needs:
- gosec
if: always() && needs.gosec.result != 'success'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Notify Slack
uses: slackapi/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
payload: |
{
"gosec-status": "${{ needs.gosec.result != 'success' && ':alert: Failure' || ':white_check_mark: Success' }}",
"gosec-output": "${{ needs.gosec.outputs.gosec-output && fromJson(needs.gosec.outputs.gosec-output) || 'No issues found' }}",
"commit-message": "${{ env.commit_message }}"
}
- name: Notify Slack
uses: slackapi/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
payload: |
{
"gosec-status": "${{ needs.gosec.result != 'success' && ':alert: Failure' || ':white_check_mark: Success' }}",
"gosec-output": "${{ needs.gosec.outputs.gosec-output && fromJson(needs.gosec.outputs.gosec-output) || 'No issues found' }}",
"commit-message": "${{ env.commit_message }}"
}

0 comments on commit 340fcb7

Please sign in to comment.