Skip to content

Commit 3ac0a42

Browse files
authored
[SSPROD-54324] adding suffix to org role for GCP Workload Scanning ORG onboarding (#60)
* adding suffix to org role * Changing comment * Upgrading cache version
1 parent 210d5bc commit 3ac0a42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Check out code
5353
uses: actions/checkout@v2
5454
- name: Cache modules
55-
uses: actions/cache@v1
55+
uses: actions/cache@v4
5656
with:
5757
path: ~/go/pkg/mod
5858
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

modules/vm-workload-scanning/organizational.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ data "google_organization" "org" {
1212
###################################################
1313

1414
#---------------------------------------------------------------------------------------------
15-
# role permissions for CSPM (GCP Predefined Roles for Sysdig Cloud Secure Posture Management)
15+
# role permissions for VM Workload Scanning
1616
#---------------------------------------------------------------------------------------------
1717
resource "google_organization_iam_custom_role" "custom_role" {
1818
count = var.is_organizational ? 1 : 0
1919

2020
org_id = data.google_organization.org[0].org_id
21-
role_id = "vmWorkloadScanningRole"
21+
role_id = "${var.role_name}vmWorkloadScanningRole${title(local.suffix)}"
2222
title = "VM Workload Scanning Role"
2323
permissions = [
2424
"artifactregistry.repositories.downloadArtifacts",

0 commit comments

Comments
 (0)