chore: initialize from frontend template 4dc033c
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export function Fixture({ value }: { value: string }) {
|
||||
return <span>{value}</span>;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export function SafeTextFixture({ value }: Readonly<{ value: string }>) {
|
||||
return <p>{value}</p>;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export function attachScript(source: string) {
|
||||
const script = document.createElement("script");
|
||||
script.src = source;
|
||||
document.head.append(script);
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export const execute = (source: string) => eval(source);
|
||||
@@ -0,0 +1,3 @@
|
||||
export function RawHtml({ value }: { value: string }) {
|
||||
return <div dangerouslySetInnerHTML={{ __html: value }} />;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export function UnsafeHtmlFixture({ value }: Readonly<{ value: string }>) {
|
||||
return <div dangerouslySetInnerHTML={{ __html: value }} />;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export const client_secret = "fixture-only-secret-value";
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"trackedRoots": [
|
||||
"tests/fixtures/security/secret-detection/forbidden"
|
||||
],
|
||||
"generatedRoots": [],
|
||||
"includedPaths": [
|
||||
"tests/fixtures/security/secret-detection/forbidden"
|
||||
],
|
||||
"excludedPaths": [],
|
||||
"allowlist": []
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"client_secret": "synthetic-forbidden-secret"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
(globalThis as typeof globalThis & { password: string }).password =
|
||||
"synthetic-built-secret";
|
||||
@@ -0,0 +1 @@
|
||||
export const leaked = "AKIAABCDEFGHIJKLMNOP";
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"trackedRoots": [
|
||||
"tests/fixtures/security/secret-detection/forbidden"
|
||||
],
|
||||
"generatedRoots": [],
|
||||
"includedPaths": [
|
||||
"tests/fixtures/security/secret-detection/misspelled"
|
||||
],
|
||||
"excludedPaths": [],
|
||||
"allowlist": []
|
||||
}
|
||||
Reference in New Issue
Block a user