mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
feat(ql3): authorize reconciliation reviews
This commit is contained in:
@@ -2010,6 +2010,14 @@ function auditSourceImports(root, packagePath, findings) {
|
||||
'src/lifecycle/localReadiness.ts' &&
|
||||
specifier === '@qinglong/local-sqlite/readiness-inspection'
|
||||
) &&
|
||||
!(
|
||||
path.relative(packageDirectory, filePath) ===
|
||||
'src/deployment/reconciliation/review/completion.ts' &&
|
||||
[
|
||||
'@qinglong/local-owner-console/authenticated-command',
|
||||
'@qinglong/local-sqlite/authentication-read',
|
||||
].includes(specifier)
|
||||
) &&
|
||||
!(
|
||||
[
|
||||
'src/deployment/compose/composeApply.ts',
|
||||
@@ -2643,6 +2651,28 @@ function auditSourceImports(root, packagePath, findings) {
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
if (
|
||||
packagePath === 'packages/ql3-local-owner-cli' &&
|
||||
[
|
||||
{
|
||||
file: 'src/deployment/reconciliation/review/authorization.ts',
|
||||
specifiers: [
|
||||
'@qinglong/runtime-core/local-secret',
|
||||
'@qinglong/runtime-core/security',
|
||||
],
|
||||
},
|
||||
{
|
||||
file: 'src/deployment/reconciliation/review/issuerKeyring.ts',
|
||||
specifiers: ['@qinglong/runtime-core/local-secret'],
|
||||
},
|
||||
].some(
|
||||
({ file, specifiers }) =>
|
||||
path.relative(packageDirectory, filePath) === file &&
|
||||
specifiers.includes(specifier),
|
||||
)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
if (
|
||||
packagePath === 'packages/ql3-local-owner-cli' &&
|
||||
path.relative(packageDirectory, filePath) ===
|
||||
|
||||
Reference in New Issue
Block a user