Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(secrets): stop flagging published PUBLIC KEY pem files so the CLI verification key no longer blocks pushes

nirholasbe7a6a8127f8
diff --git a/scripts/check-secrets.mjs b/scripts/check-secrets.mjs
index d8361eb25..957860866 100644
--- a/scripts/check-secrets.mjs
+++ b/scripts/check-secrets.mjs
@@ -58,6 +58,18 @@ const paths = pathsIdx === -1 ? [] : argv.slice(pathsIdx + 1).filter((a) => !a.s
const git = (args) =>
execFileSync('git', args, { cwd: root, encoding: 'utf8', maxBuffer: 256 * 1024 * 1024, stdio: ['ignore', 'pipe', 'pipe'] });
+// A PEM whose only block is a PUBLIC KEY (a verification key such as public/cli/signing-key.pem)
+// is meant to be published; anything unreadable or with any other block stays flagged.
+function isPublicPem(file) {
+ if (!/\.pem$/i.test(file)) return false;
+ try {
+ const blocks = readFileSync(path.join(root, file), 'utf8').match(/-----BEGIN [A-Z ]+-----/g) || [];
+ return blocks.length > 0 && blocks.every((b) => b === '-----BEGIN PUBLIC KEY-----');
+ } catch {
+ return false;
+ }
+}
+
// Filename patterns that ARE credential files, whatever they contain. Kept
// separate from the content rules because the answer here does not depend on
// reading the file: nobody commits a private key deliberately.
@@ -75,7 +87,8 @@ const SECRET_FILENAMES = [
},
{
id: 'key-file',
- test: (file) => /\.(pem|key|p12|pfx|jks|keystore|ppk)$/i.test(file) && !/\.(public|pub)\.(pem|key)$/i.test(file),
+ test: (file) =>
+ /\.(pem|key|p12|pfx|jks|keystore|ppk)$/i.test(file) && !/\.(public|pub)\.(pem|key)$/i.test(file) && !isPublicPem(file),
why: 'private-key and keystore files are credential material by construction',
},
{