This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
47 lines (47 loc) · 1.52 KB
/
cfn-nag.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
name: Cfn-nag check
'on':
pull_request: {}
workflow_dispatch: {}
jobs:
cfn-nag:
runs-on: ubuntu-latest
env:
CI: 'true'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: '${{ github.event.pull_request.head.ref }}'
repository: '${{ github.event.pull_request.head.repo.full_name }}'
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: yarn
- name: Install dependencies
run: |
yarn install --check-files --frozen-lockfile
npx projen
- name: synth
run: npx cdk synth -c EnableDashboardCustomDomain=true --json -q
- uses: stelligent/cfn_nag@master
with:
input_path: cdk.out/
extra_args: >-
--template-pattern ..*.template.json --fail-on-warnings -b
.cfn-nag-ignore-lists.yml --print-suppression
- name: synth
run: npx cdk synth -c TargetPartition=aws-cn --json --output cn -q
- uses: stelligent/cfn_nag@master
with:
input_path: cn/
extra_args: >-
--template-pattern ..*.template.json --fail-on-warnings -b
.cfn-nag-ignore-lists.yml --print-suppression
- name: synth
run: npx cdk synth --json --output default -q
- uses: stelligent/cfn_nag@master
with:
input_path: default/
extra_args: >-
--template-pattern ..*.template.json --fail-on-warnings -b
.cfn-nag-ignore-lists.yml --print-suppression