Skip to content

Commit b0cec48

Browse files
committed
chore: Ignore invalid semgrep issues
1 parent 5b2f397 commit b0cec48

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

build.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ async function buildHTML(artifacts: BuildArtifact[]) {
137137
const cssFile = basename(css.path);
138138
const jsFile = basename(js.path);
139139

140+
// nosemgrep: generic.secrets.gitleaks.generic-api-key.generic-api-key
141+
const bugboxApiKey = 'AZdUwYn8cACA8WMnLa8QKQ';
140142
const html = `
141143
<!doctype html>
142144
<html lang=en>
@@ -148,7 +150,7 @@ async function buildHTML(artifacts: BuildArtifact[]) {
148150
<link href=/apple-touch-icon.png rel=apple-touch-icon>
149151
<title>ekscss REPL</title>
150152
<link href=/${cssFile} rel=stylesheet>
151-
<script src=https://io.bugbox.app/v0/bugbox.js crossorigin data-key=AZdUwYn8cACA8WMnLa8QKQ data-release=${release} data-env=${String(process.env.NODE_ENV)} data-ekscss=${pkg.dependencies.ekscss}></script>
153+
<script src=https://io.bugbox.app/v0/bugbox.js crossorigin data-key=${bugboxApiKey} data-release=${release} data-env=${String(process.env.NODE_ENV)} data-ekscss=${pkg.dependencies.ekscss}></script>
152154
<script src=/${basename(jsFile)} defer></script>
153155
<noscript>You need to enable JavaScript to run this app.</noscript>
154156
`

src/macros.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export function interpolate(text: string, values: string[]): string {
66

77
// eslint-disable-next-line unicorn/no-array-for-each
88
values.forEach((value, index) => {
9+
// nosemgrep: javascript.lang.security.audit.detect-non-literal-regexp.detect-non-literal-regexp
910
result = result.replace(new RegExp(`%%${String(index + 1)}%%`, 'g'), value);
1011
});
1112

0 commit comments

Comments
 (0)