Skip to content

Commit 56f7fdf

Browse files
committed
fix: lint issue
1 parent 8e59941 commit 56f7fdf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

security-center/snippets/management_api/createSecurityHealthAnalyticsCustomModule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ function main(organizationId, customModuleDisplayName, locationId = 'global') {
5151
*/
5252
const name = `organizations/${organizationId}/locations/${locationId}/securityHealthAnalyticsCustomModules/custom_module`;
5353

54-
// define the CEL expression here and this will scans for keys that have not been rotated in
55-
// the last 30 days, change it according to your requirements
54+
// define the CEL expression here and this will scans for keys that have not been rotated in
55+
// the last 30 days, change it according to your requirements
5656
const expr = {
5757
expression: `has(resource.rotationPeriod) && (resource.rotationPeriod > duration('2592000s'))`,
5858
};

security-center/snippets/system-test/management_api/securityHealthAnalyticsCustomModule.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ const {execSync} = require('child_process');
2525
const exec = cmd => execSync(cmd, {encoding: 'utf8'});
2626

2727
// TODO(developer): Replace with your organization ID
28-
const organizationId =
29-
process.env.SCC_ORGANIZATION_ID || 'YOUR_ORGANIZATION_ID';
28+
const organizationId = process.env.GCLOUD_ORGANIZATION;
3029
const locationId = 'global';
3130
const customModuleDisplayName =
3231
'security_health_analytics_test' + uuidv1().replace(/-/g, '_');

0 commit comments

Comments
 (0)