diff --git a/security-center/snippets/management_api/createSecurityHealthAnalyticsCustomModule.js b/security-center/snippets/management_api/createSecurityHealthAnalyticsCustomModule.js index a7eafaf344..a7168a2c84 100644 --- a/security-center/snippets/management_api/createSecurityHealthAnalyticsCustomModule.js +++ b/security-center/snippets/management_api/createSecurityHealthAnalyticsCustomModule.js @@ -51,8 +51,8 @@ function main(organizationId, customModuleDisplayName, locationId = 'global') { */ const name = `organizations/${organizationId}/locations/${locationId}/securityHealthAnalyticsCustomModules/custom_module`; -// define the CEL expression here and this will scans for keys that have not been rotated in -// the last 30 days, change it according to your requirements + // define the CEL expression here and this will scans for keys that have not been rotated in + // the last 30 days, change it according to your requirements const expr = { expression: `has(resource.rotationPeriod) && (resource.rotationPeriod > duration('2592000s'))`, }; diff --git a/security-center/snippets/system-test/management_api/securityHealthAnalyticsCustomModule.test.js b/security-center/snippets/system-test/management_api/securityHealthAnalyticsCustomModule.test.js index b374b51680..18e9e7cc7c 100644 --- a/security-center/snippets/system-test/management_api/securityHealthAnalyticsCustomModule.test.js +++ b/security-center/snippets/system-test/management_api/securityHealthAnalyticsCustomModule.test.js @@ -25,8 +25,7 @@ const {execSync} = require('child_process'); const exec = cmd => execSync(cmd, {encoding: 'utf8'}); // TODO(developer): Replace with your organization ID -const organizationId = - process.env.SCC_ORGANIZATION_ID || 'YOUR_ORGANIZATION_ID'; +const organizationId = process.env.GCLOUD_ORGANIZATION; const locationId = 'global'; const customModuleDisplayName = 'security_health_analytics_test' + uuidv1().replace(/-/g, '_');