Skip to content

Commit c1e3514

Browse files
committed
update slack inputs
1 parent 8ccce88 commit c1e3514

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/onboard-new-repo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ jobs:
286286
if: ${{ failure() && env.SLACK_WEBHOOK_URL != '' }}
287287
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
288288
with:
289-
webhook: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}
289+
# webhook: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}
290290
webhook-type: incoming-webhook
291291
payload: |
292292
{

.github/workflows/security-scan.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,16 @@ jobs:
222222
- name: Post to Slack channel
223223
if: ${{ steps.scan-result.outputs.result == 'failure' && env.SLACK_WEBHOOK != '' }}
224224
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
225+
webhook: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}
226+
webhook-type: incoming-webhook
225227
with:
226228
payload: |
227229
{
228230
"text": "Security scan failed for ${{ env.REPO }} - Run: https://github.com/${{ env.REPO }}/actions/runs/${{ github.run_id }}",
229231
"channel": "#security-notifications"
230232
}
231233
env:
232-
SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK }}
233-
SLACK_WEBHOOK_TYPE: incoming-webhook
234+
SLACK_WEBHOOK_URL: ${{ env.APPSEC_BOT_SLACK_WEBHOOK }}
234235

235236
- name: Log metrics
236237
if: ${{ env.PROJECT_METRICS_TOKEN != '' }}

0 commit comments

Comments
 (0)