Skip to content

ci(recaptcha): migrate to new CI #4008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/config/nodejs-dev.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
"mediatranslation",
"monitoring/prometheus",
"monitoring/snippets",
"recaptcha_enterprise/snippets",
"retail",
"routeoptimization/snippets",
"run/hello-broken",
Expand Down
1 change: 0 additions & 1 deletion .github/config/nodejs-prod.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
"functions/v2/imagemagick", // (untested) Error: A bucket name is needed to use Cloud Storage.
"healthcare/fhir", // Error: Cannot find module 'whatwg-url'
"iam/deny", // PERMISSION_DENIED: Permission iam.googleapis.com/denypolicies.create denied on resource cloudresourcemanager.googleapis.com/projects/long-door-651
"recaptcha_enterprise/snippets", // Cannot use import statement outside a module
"run/idp-sql", // (untested) Error: Invalid contents in the credentials file
"storagetransfer", // CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
"video-intelligence", // PERMISSION_DENIED: The caller does not have permission
Expand Down
1 change: 1 addition & 0 deletions recaptcha_enterprise/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"main": "quickstart.js",
"license": "Apache-2.0",
"author": "Google LLC",
"type": "module",
"engines": {
"node": ">=16.0.0"
},
Expand Down
7 changes: 3 additions & 4 deletions recaptcha_enterprise/snippets/passwordLeakAssessment.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ const [projectId, username, password] = args;

// [START recaptcha_enterprise_password_leak_verification]

const {
RecaptchaEnterpriseServiceClient,
} = require('@google-cloud/recaptcha-enterprise');
const {PasswordCheckVerification} = require('recaptcha-password-check-helpers');
import {RecaptchaEnterpriseServiceClient} from '@google-cloud/recaptcha-enterprise';
import {PasswordCheckVerification} from 'recaptcha-password-check-helpers';

// TODO(developer): Uncomment and set the following variables
// Google Cloud Project ID.
Expand Down Expand Up @@ -168,3 +166,4 @@ checkPasswordLeak(projectId, username, password).catch(err => {
process.exitCode = 1;
});
// [END recaptcha_enterprise_password_leak_verification]
module.exports = checkPasswordLeak
3 changes: 2 additions & 1 deletion recaptcha_enterprise/snippets/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"strict": true,
"noImplicitAny": false,
"esModuleInterop": true,
"moduleResolution": "node"
"moduleResolution": "node",
"module": "ESNext"
}
}
Loading