Skip to content

Commit 853edf2

Browse files
committed
Work around aggressive sendgrid secret check
1 parent f9171bc commit 853edf2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/package.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,13 @@ main(async () => {
3434

3535
// Update version in CHANGELOG
3636
await updateChangelog(versionString);
37+
3738
// Use VSCE to package the extension
38-
await exec("npx", ["vsce", "package"], {
39+
// Note: There are no sendgrid secrets in the extension. `--allow-package-secrets` works around a false positive
40+
// where the symbol `SG.MessageTransports.is` can appear in the dist.js if we're unlucky enough
41+
// to have `SG` as the minified name of a namespace. Here is the rule we sometimes mistakenly match:
42+
// https://github.com/secretlint/secretlint/blob/5706ac4942f098b845570541903472641d4ae914/packages/%40secretlint/secretlint-rule-sendgrid/src/index.ts#L35
43+
await exec("npx", ["vsce", "package", "--allow-package-secrets", "sendgrid"], {
3944
cwd: rootDirectory,
4045
});
4146
});

0 commit comments

Comments
 (0)