-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (50 loc) · 1.31 KB
/
sonar_upgrade_flow.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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: 'Sonar Upgrade Flow'
on:
workflow_call:
secrets:
AWS_ACCESS_KEY_ID:
required: true
AWS_SECRET_ACCESS_KEY:
required: true
SLACK_WEBHOOK_URL:
required: true
DAM_LICENSE:
required: true
workflow_dispatch:
push:
branches:
- 'dev'
paths:
- 'modules/aws/sonar-upgrader/**'
- 'examples/aws/sonar_upgrade/*'
- '.github/sonar_upgrade*.yml'
- '!**/README.md'
pull_request:
types:
- 'opened'
- 'reopened'
branches:
- 'dev'
paths:
- 'modules/aws/sonar-upgrader/**'
- 'examples/aws/sonar_upgrade/*'
- '.github/sonar_upgrade*.yml'
- '!**/README.md'
permissions:
contents: read
jobs:
sonar_upgrade_unit_tests:
uses: ./.github/workflows/sonar_upgrade_unit_tests.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
sonar_upgrade:
needs: sonar_upgrade_unit_tests
uses: ./.github/workflows/sonar_upgrade.yml
with:
use_modules_from_terraform_registry: false
explicit_ref: '' # current branch
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DAM_LICENSE: ${{ secrets.DAM_LICENSE }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}