-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (43 loc) · 1.17 KB
/
dependabot-security-updates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Dependabot Security Updates
on:
pull_request:
branches:
- main
- master
jobs:
notify:
if: startsWith(github.head_ref, 'dependabot/')
name: Notify Slack
uses: amberdata/cicd/.github/workflows/[email protected]
with:
slack_webhook_url_secret_name: /production/0001/vulnerability-scanning/slack-webhook-url
slack_payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "Dependabot Security Updates"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Repository Name:*\n${{ github.event.repository.name }}"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Security update available:*\n*<${{ github.event.pull_request.html_url }}|Pull Request>*"
}
]
}
]
}
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}