Skip to content

Commit 1a5b241

Browse files
committed
Added metrix for checkov
1 parent 7678277 commit 1a5b241

File tree

1 file changed

+12
-28
lines changed

1 file changed

+12
-28
lines changed

.github/workflows/arm-template-test.yml

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -33,40 +33,24 @@ jobs:
3333
security-test:
3434
name: "ARM template tests using checkov"
3535
runs-on: "ubuntu-latest"
36+
strategy:
37+
matrix:
38+
include: # Includes one more job
39+
- file: 'azuredeploy_metrics.json'
40+
dir: 'EventHubs/src'
41+
- file: 'blobreaderdeploy.json'
42+
dir: 'BlockBlobReader/src'
43+
- file: 'blobreaderdeploywithPremiumPlan.json'
44+
dir: 'BlockBlobReader/src/PremiumPlan'
3645
steps:
3746
- name: Checkout repo
3847
uses: actions/checkout@v4
3948

40-
- name: Test Metric ARM Templates using checkov
41-
id: metriccheckov
42-
uses: bridgecrewio/checkov-action@master
43-
with:
44-
file: EventHubs/src/azuredeploy_metrics.json
45-
skip_check: CKV_AZURE_16,CKV_AZURE_17,CKV_AZURE_35
46-
quiet: false
47-
framework: arm
48-
output_format: cli
49-
output_bc_ids: true
50-
51-
- name: Test BlockBlob ARM Templates using checkov
52-
id: blockblobcheckov
53-
uses: bridgecrewio/checkov-action@master
54-
with:
55-
file: BlockBlobReader/src/blobreaderdeploy.json
56-
skip_check: CKV_AZURE_16,CKV_AZURE_17,CKV_AZURE_35
57-
quiet: false
58-
framework: arm
59-
output_format: cli
60-
output_bc_ids: true
61-
log_level: DEBUG
62-
63-
- name: Test BlockBlob Premium Plan Templates using checkov
64-
id: blockblobpremiumplancheckov
65-
uses: bridgecrewio/checkov-action@master
49+
- uses: bridgecrewio/checkov-action@master
6650
with:
67-
file: BlockBlobReader/src/blobreaderdeploywithPremiumPlan.json
51+
file: ${{ matrix.dir }}/${{ matrix.file }}
6852
skip_check: CKV_AZURE_16,CKV_AZURE_17,CKV_AZURE_35
6953
quiet: false
7054
framework: arm
7155
output_format: cli
72-
output_bc_ids: true
56+
output_bc_ids: true

0 commit comments

Comments
 (0)