forked from wangziqi/gongxue-base
feat: establish production SaaS foundation
This commit is contained in:
@@ -41,6 +41,7 @@ try {
|
||||
[
|
||||
'DATABASE_URL=postgresql://postgres:real-password@db.example.com:5432/postgres',
|
||||
'SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.fake-service-role-token-that-should-not-ship',
|
||||
'GITEA_TOKEN=0123456789abcdef0123456789abcdef01234567',
|
||||
'',
|
||||
].join('\n'),
|
||||
'utf8',
|
||||
@@ -52,6 +53,7 @@ try {
|
||||
assert.ok(payload.findings.some(item => item.id === 'frontend-legacy-user-header'), 'x-user-id should be detected');
|
||||
assert.ok(payload.findings.some(item => item.id === 'postgres-url'), 'database URL should be detected');
|
||||
assert.ok(payload.findings.some(item => item.id === 'supabase-service-role'), 'service role key should be detected');
|
||||
assert.ok(payload.findings.some(item => item.id === 'git-access-token'), 'Git access token should be detected');
|
||||
} finally {
|
||||
fs.rmSync(tempDir, { recursive: true, force: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user