Skip to content

Commit dd40c8a

Browse files
committed
chore: add debug flag
1 parent c8784a3 commit dd40c8a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/audit-dependencies.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
description: The level of audit to run (low, moderate, high, critical)
1111
required: false
1212
default: critical
13+
debug:
14+
description: Enable debug logging
15+
required: false
16+
default: false
1317

1418
env:
1519
NODE_VERSION: 23.11.0
@@ -47,17 +51,17 @@ jobs:
4751
if: failure()
4852
uses: slackapi/[email protected]
4953
with:
50-
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
54+
webhook: ${{ inputs.debug == 'true' && secrets.SLACK_TEST_WEBHOOK_URL || secrets.SLACK_WEBHOOK_URL }}
5155
webhook-type: incoming-webhook
5256
payload: |
5357
{
54-
"text": "🚨 *Dependency Vulnerabilities Found*",
58+
"username": "GitHub Actions Bot",
5559
"blocks": [
5660
{
5761
"type": "section",
5862
"text": {
5963
"type": "mrkdwn",
60-
"text": "Actionable vulnerabilities found: <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Details>"
64+
"text": "🚨 Actionable vulnerabilities found: <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Details>"
6165
}
6266
},
6367
]

0 commit comments

Comments
 (0)