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

Update Library Templates (automated) #972

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 8 additions & 2 deletions .github/workflows/update-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ name: Update Library Templates
on:
schedule:
- cron: "0 8 * * 1-5"
workflow_dispatch: {}
workflow_dispatch:
inputs:
enterprise-scale-repository-branch:
description: "The branch to target for the enterprise scale repository"
required: false
default: "main"

env:
remote_repository: "Azure/Enterprise-Scale"
remote_repository_branch: ${{ github.event.inputs.enterprise-scale-repository-branch != 'main' && github.event.inputs.enterprise-scale-repository-branch || 'main' }}
branch_name: "patch-library-${{ github.run_number }}"
pr_title: "Update Library Templates (automated)"
pr_body:
Expand All @@ -34,7 +40,7 @@ jobs:
with:
repository: ${{ env.remote_repository }}
path: ${{ env.remote_repository }}
ref: main
ref: ${{ env.remote_repository_branch }}

- uses: tibdex/github-app-token@v2
id: generate-token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"displayName": "Public network access should be disabled for PaaS services",
"description": "This policy initiative is a group of policies that prevents creation of Azure PaaS services with exposed public endpoints",
"metadata": {
"version": "5.0.0",
"version": "5.1.0",
"category": "Network",
"source": "https://github.com/Azure/Enterprise-Scale/",
"alzCloudEnvironments": [
Expand Down Expand Up @@ -506,7 +506,7 @@
"Disabled"
]
},
"graphanaPublicNetworkAccess": {
"grafanaPublicNetworkAccess": {
"type": "string",
"defaultValue": "Deny",
"allowedValues": [
Expand Down Expand Up @@ -958,11 +958,11 @@
"groupNames": []
},
{
"policyDefinitionReferenceId": "Deny-Graphana-PublicNetworkAccess",
"policyDefinitionReferenceId": "Deny-Grafana-PublicNetworkAccess",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e8775d5a-73b7-4977-a39b-833ef0114628",
"parameters": {
"effect": {
"value": "[parameters('graphanaPublicNetworkAccess')]"
"value": "[parameters('grafanaPublicNetworkAccess')]"
}
},
"groupNames": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@
]
}
},
"policyDefinitions": {
"policyDefinitionReferenceId": "Deny-ContainerInstance-Vnet",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/8af8f826-edcb-4178-b35f-851ea6fea615",
"parameters": {
"effect": {
"value": "[parameters('containerInstanceVnet')]"
}
},
"groupNames": []
},
"policyDefinitions": [
{
"policyDefinitionReferenceId": "Deny-ContainerInstance-Vnet",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/8af8f826-edcb-4178-b35f-851ea6fea615",
"parameters": {
"effect": {
"value": "[parameters('containerInstanceVnet')]"
}
},
"groupNames": []
}
],
"policyDefinitionGroups": null
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@
]
}
},
"policyDefinitions": {
"policyDefinitionReferenceId": "Dine-PostgreSql-Adv-Threat-Protection",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/db048e65-913c-49f9-bb5f-1084184671d3",
"parameters": {
"effect": {
"value": "[parameters('postgreSqlAdvThreatProtection')]"
}
},
"groupNames": []
},
"policyDefinitions": [
{
"policyDefinitionReferenceId": "Dine-PostgreSql-Adv-Threat-Protection",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/db048e65-913c-49f9-bb5f-1084184671d3",
"parameters": {
"effect": {
"value": "[parameters('postgreSqlAdvThreatProtection')]"
}
},
"groupNames": []
}
],
"policyDefinitionGroups": null
}
}