-
Notifications
You must be signed in to change notification settings - Fork 25
58 lines (49 loc) · 1.75 KB
/
cf-test.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
57
58
name: "CF template tests"
on: [workflow_dispatch, pull_request]
jobs:
ValidateLinting:
name: "Cloud Formation template linting verification"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Cloud Formation Linter with Latest Version
uses: scottbrenner/cfn-lint-action@v2
- name: Print the Cloud Formation Linter Version & run Linter.
run: |
cfn-lint aws-observability/**/*.yaml --ignore-templates aws-observability/**/*TestTemplate.yaml
CFSecurityChecksCheckovt:
name: "Cloud Formation template tests using checkov"
runs-on: "ubuntu-latest"
steps:
- name: Checkout repo
uses: actions/checkout@v3
- uses: bridgecrewio/checkov-action@master
with:
directory: aws-observability/
quiet: false
framework: cloudformation
output_format: cli
output_bc_ids: true
CFSecurityChecksCFNNAG:
name: "cfn-nag for Cloud Formation template"
runs-on: "ubuntu-latest"
steps:
- uses: stelligent/cfn_nag@master
with:
input_path: aws-observability/**/*.yaml
ValidatePython:
name: "Validate Python test"
runs-on: "ubuntu-latest"
steps:
- name: Checkout repo
uses: actions/checkout@v3
- run: |
unzip aws-observability/apps/SumoLogicAWSObservabilityHelper/SumoLogicAWSObservabilityHelperv2.0.17.zip -d SumoLogicAWSObservabilityHelperv2.0.17
- uses: bridgecrewio/checkov-action@master
with:
directory: aws-observability/apps/SumoLogicAWSObservabilityHelper/SumoLogicAWSObservabilityHelperv2.0.17/
quiet: false
framework: python
output_format: cli
output_bc_ids: true