Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-action-workflow #72

Merged
merged 27 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
4e88927
arm-tool-kit-test.yml
priyansh-sumo Jan 23, 2024
c6ffc5a
path: EventHubs/src
priyansh-sumo Jan 23, 2024
d08d2d9
SUMO_REPO_PATH
priyansh-sumo Jan 23, 2024
9e1363e
Update arm-tool-kit-test.yml
priyansh-sumo Jan 23, 2024
24900b5
arm-bridgecrew-test.yml
priyansh-sumo Jan 23, 2024
3e7d458
path: $SOURCE_BRANCH/EventHubs/src
priyansh-sumo Jan 23, 2024
31222e7
path: $SUMO_REPO_PATH/$SOURCE_BRANCH/EventHubs/src
priyansh-sumo Jan 23, 2024
63a1b58
Update arm-tool-kit-test.yml
priyansh-sumo Jan 23, 2024
b9724ed
Update arm-tool-kit-test.yml
priyansh-sumo Jan 23, 2024
859e07f
test
priyansh-sumo Jan 23, 2024
3779468
test path
priyansh-sumo Jan 23, 2024
d39e3de
echo check
priyansh-sumo Jan 23, 2024
c81b08c
arm-bridgecrew
priyansh-sumo Jan 23, 2024
796c622
workflow modifications
priyansh-sumo Jan 23, 2024
a400bf3
Debug - List Files in Path
priyansh-sumo Jan 23, 2024
1ceeeb6
Debug - Path
priyansh-sumo Jan 23, 2024
6cac276
Test ARM Templates - files
priyansh-sumo Jan 23, 2024
bcce346
git checkout setup
priyansh-sumo Jan 23, 2024
19a5c81
remove env
priyansh-sumo Jan 23, 2024
7927b02
removed file and merged both
priyansh-sumo Jan 23, 2024
326f9c5
path: EventHubs/src/azuredeploy_metrics.json
priyansh-sumo Jan 23, 2024
56a94c0
bridgecrewio check
priyansh-sumo Jan 23, 2024
cca130f
log_level
priyansh-sumo Jan 23, 2024
e9b4533
framework
priyansh-sumo Jan 23, 2024
abd4172
fixed indentation
himanshu219 Jan 24, 2024
ab71a76
testing with 12 version
himanshu219 Jan 24, 2024
2b889b3
skipped tests
himanshu219 Jan 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/arm-template-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "ARM template tests"

on: [pull_request]

jobs:
best-practices-test:
name: "ARM template tests using arm-ttk"
runs-on: "ubuntu-latest"
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Test ARM Templates using arm-ttk
id: filestest
uses: aliencube/[email protected]
with:
path: EventHubs/src/azuredeploy_metrics.json

security-test:
name: "ARM template tests using checkov"
runs-on: "ubuntu-latest"
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Test ARM Templates using checkov
id: checkov
uses: bridgecrewio/checkov-action@v12
with:
file: EventHubs/src/azuredeploy_metrics.json
skip_check: CKV_AZURE_16,CKV_AZURE_17,CKV_AZURE_35
quiet: false
framework: arm
output_format: cli
output_bc_ids: true
44 changes: 22 additions & 22 deletions EventHubs/src/azuredeploy_metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
"type": "String"
},
"logAnalyticsWorkspaceName": {
"defaultValue": "[concat('SMWorkspace', uniqueString(resourceGroup().id))]",
"type": "String"
},
"defaultValue": "[concat('SMWorkspace', uniqueString(resourceGroup().id))]",
"type": "String"
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
Expand Down Expand Up @@ -281,25 +281,25 @@
]
},
{
"type": "microsoft.operationalinsights/workspaces",
"apiVersion": "2022-10-01",
"name": "[parameters('logAnalyticsWorkspaceName')]",
"location": "[parameters('location')]",
"properties": {
"sku": {
"name": "pergb2018"
},
"retentionInDays": 30,
"features": {
"type": "microsoft.operationalinsights/workspaces",
"apiVersion": "2022-10-01",
"name": "[parameters('logAnalyticsWorkspaceName')]",
"location": "[parameters('location')]",
"properties": {
"sku": {
"name": "pergb2018"
},
"retentionInDays": 30,
"features": {
"enableLogAccessUsingOnlyResourcePermissions": true
},
"workspaceCapping": {
"dailyQuotaGb": -1
},
"publicNetworkAccessForIngestion": "Enabled",
"publicNetworkAccessForQuery": "Enabled"
}
},
},
"workspaceCapping": {
"dailyQuotaGb": -1
},
"publicNetworkAccessForIngestion": "Enabled",
"publicNetworkAccessForQuery": "Enabled"
}
},
{
"name": "[parameters('appInsightsName')]",
"type": "Microsoft.Insights/components",
Expand All @@ -313,4 +313,4 @@
}
}
]
}
}
Loading