File tree Expand file tree Collapse file tree 5 files changed +14
-15
lines changed
app-github-runner-creator Expand file tree Collapse file tree 5 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 1
1
# app-github-runner-ci
2
2
3
+ <!-- markdownlint-disable -->
3
4
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
4
5
## Requirements
5
6
Original file line number Diff line number Diff line change 1
1
# app-github-runner-ci
2
2
3
+ <!-- markdownlint-disable -->
3
4
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
4
5
## Requirements
5
6
Original file line number Diff line number Diff line change 1
1
# app-github-runner-ci
2
2
3
+ <!-- markdownlint-disable -->
3
4
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
4
5
## Requirements
5
6
@@ -24,6 +25,7 @@ No modules.
24
25
| [ azuread_application_federated_identity_credential.github_app] ( https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/resources/application_federated_identity_credential ) | resource |
25
26
| [ azuread_service_principal.github_app] ( https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/resources/service_principal ) | resource |
26
27
| [ azurerm_role_assignment.environment_runner_github_runner_rg] ( https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/role_assignment ) | resource |
28
+ | [ azurerm_role_assignment.pagopa_iac_reader] ( https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/role_assignment ) | resource |
27
29
| [ azurerm_resource_group.github_runner_rg] ( https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/resource_group ) | data source |
28
30
29
31
## Inputs
Original file line number Diff line number Diff line change @@ -27,3 +27,12 @@ resource "azurerm_role_assignment" "environment_runner_github_runner_rg" {
27
27
role_definition_name = " Contributor"
28
28
principal_id = azuread_service_principal. github_app . object_id
29
29
}
30
+
31
+ #
32
+ # Associate custom role
33
+ #
34
+ resource "azurerm_role_assignment" "pagopa_iac_reader" {
35
+ scope = var. subscription_id
36
+ role_definition_name = " PagoPA IaC Reader"
37
+ principal_id = azuread_service_principal. github_app . object_id
38
+ }
Original file line number Diff line number Diff line change 1
1
locals {
2
- # github_app_roles = {
3
- # subscription = [
4
- # "Contributor",
5
- # "Storage Account Contributor",
6
- # "Storage Blob Data Contributor",
7
- # "Storage File Data SMB Share Contributor",
8
- # "Storage Queue Data Contributor",
9
- # "Storage Table Data Contributor",
10
- # ]
11
- # }
2
+
12
3
}
13
4
14
5
variable "app_name" {
@@ -26,11 +17,6 @@ variable "github_repository" {
26
17
description = " GitHub Repository"
27
18
}
28
19
29
- # variable "iac_aad_group_name" {
30
- # type = string
31
- # description = "Azure AD group name for iac sp apps (with Directory Reader permissions at leats)"
32
- # }
33
-
34
20
variable "subscription_id" {
35
21
type = string
36
22
description = " Suscription ID"
You can’t perform that action at this time.
0 commit comments