mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
fix(ql3): install alpha finalizer dependencies
This commit is contained in:
@@ -494,6 +494,9 @@ function auditClusterAlphaMilestoneWorkflow(root = DEFAULT_ROOT) {
|
||||
const milestone = jobBlock(workflow, 'cluster-alpha-milestone');
|
||||
const tokens = [
|
||||
'name: Finalize the Cluster Alpha integration milestone',
|
||||
'pnpm/action-setup@v6',
|
||||
'cache-dependency-path: pnpm-lock.yaml',
|
||||
'pnpm install --frozen-lockfile --ignore-scripts',
|
||||
'actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c',
|
||||
'scripts/ql3-cluster-alpha-milestone.cjs',
|
||||
'--mode=finalize',
|
||||
@@ -517,11 +520,15 @@ function auditClusterAlphaMilestoneWorkflow(root = DEFAULT_ROOT) {
|
||||
) {
|
||||
findings.push('CLUSTER_MILESTONE_FINALIZER_CONTRACT_DRIFT');
|
||||
}
|
||||
const dependencyInstallIndex = milestone.indexOf(
|
||||
'pnpm install --frozen-lockfile --ignore-scripts',
|
||||
);
|
||||
const finalizerIndex = milestone.indexOf('--mode=finalize');
|
||||
const auditIndex = milestone.indexOf('--mode=audit');
|
||||
const uploadIndex = milestone.indexOf('actions/upload-artifact@');
|
||||
if (
|
||||
finalizerIndex < 0 ||
|
||||
dependencyInstallIndex < 0 ||
|
||||
finalizerIndex <= dependencyInstallIndex ||
|
||||
auditIndex <= finalizerIndex ||
|
||||
uploadIndex <= auditIndex
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user