Skip to content

Commit d35faf3

Browse files
author
Frederic Mercier
committed
send notification to Slack if detect-secrets failed
1 parent 0f2a6a8 commit d35faf3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/detect-secrets.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,12 @@ jobs:
2323
-c "detect-secrets --version;
2424
detect-secrets scan --all-files --exclude-files "^.git/.*" --update .secrets.baseline;
2525
detect-secrets audit --report --fail-on-unaudited --fail-on-live --fail-on-audited-real .secrets.baseline"
26+
27+
- name: Report Status
28+
if: always()
29+
uses: ravsamhq/notify-slack-action@master
30+
with:
31+
status: ${{ job.status }}
32+
notify_when: 'failure'
33+
env:
34+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)