Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
agggaurav2024 committed Jan 20, 2025
1 parent 8e59941 commit 56f7fdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'))`,

Check warning on line 57 in security-center/snippets/management_api/createSecurityHealthAnalyticsCustomModule.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, '_');
Expand Down

0 comments on commit 56f7fdf

Please sign in to comment.