File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 `
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments