@catladder/cli 0.0.0-next-e9e5af68 → 0.0.0-next-1c65899f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles/catenv/index.js +6990 -6861
- package/dist/bundles/cli/index.js +10953 -10889
- package/dist/bundles/skills/catladder-cli/references/commands.md +37 -2
- package/dist/bundles/skills/catladder-pipelines/SKILL.md +6 -6
- package/dist/bundles/skills/catladder-secrets/SKILL.md +42 -9
- package/dist/cli/src/adapters/baseContext.d.ts +18 -18
- package/dist/cli/src/adapters/baseContext.js +34 -34
- package/dist/cli/src/adapters/nonInteractive.d.ts +2 -2
- package/dist/cli/src/adapters/nonInteractive.js +20 -22
- package/dist/cli/src/adapters/programmatic.d.ts +12 -12
- package/dist/cli/src/adapters/programmatic.js +46 -51
- package/dist/cli/src/adapters/terminal.d.ts +15 -15
- package/dist/cli/src/adapters/terminal.js +154 -176
- package/dist/cli/src/adapters/vaultManagerAccess.d.ts +1 -1
- package/dist/cli/src/adapters/vaultManagerAccess.js +11 -16
- package/dist/cli/src/apps/catenv/catenv.d.ts +4 -4
- package/dist/cli/src/apps/catenv/catenv.js +20 -20
- package/dist/cli/src/apps/catenv/printVariables.d.ts +1 -1
- package/dist/cli/src/apps/catenv/printVariables.js +30 -33
- package/dist/cli/src/apps/catenv/types.d.ts +4 -4
- package/dist/cli/src/apps/catenv/types.js +2 -4
- package/dist/cli/src/apps/catenv/utils.d.ts +6 -9
- package/dist/cli/src/apps/catenv/utils.js +21 -25
- package/dist/cli/src/apps/catenv/verboseBanner.d.ts +1 -1
- package/dist/cli/src/apps/catenv/verboseBanner.js +24 -20
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.d.ts +1 -1
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.js +22 -25
- package/dist/cli/src/apps/catenv/writeEnvDTs.d.ts +1 -1
- package/dist/cli/src/apps/catenv/writeEnvDTs.js +32 -31
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.d.ts +6 -6
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js +52 -56
- package/dist/cli/src/apps/cli/commands/project/doctor/DoctorReport.d.ts +13 -13
- package/dist/cli/src/apps/cli/commands/project/doctor/DoctorReport.js +50 -62
- package/dist/cli/src/apps/cli/commands/project/doctor/GcloudProjectInspector.d.ts +9 -9
- package/dist/cli/src/apps/cli/commands/project/doctor/GcloudProjectInspector.js +43 -44
- package/dist/cli/src/apps/cli/commands/project/doctor/checkCloudRun.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/doctor/checkCloudRun.js +75 -93
- package/dist/cli/src/apps/cli/commands/project/doctor/checkGithub.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/doctor/checkGithub.js +86 -78
- package/dist/cli/src/apps/cli/commands/project/doctor/checkGitlab.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/doctor/checkGitlab.js +58 -57
- package/dist/cli/src/apps/cli/commands/project/doctor/checkStore.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/doctor/checkStore.js +25 -30
- package/dist/cli/src/apps/cli/commands/project/doctor/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/doctor/index.js +24 -25
- package/dist/cli/src/apps/cli/commands/project/setup/ensureGcloudProjectNumbers.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/ensureGcloudProjectNumbers.js +34 -45
- package/dist/cli/src/apps/cli/commands/project/setup/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/index.js +31 -27
- package/dist/cli/src/apps/cli/commands/project/setup/logSection.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/logSection.js +13 -15
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js +34 -43
- package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.js +130 -137
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.d.ts +3 -3
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js +49 -46
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js +13 -15
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js +69 -70
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js +7 -15
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js +16 -21
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js +22 -26
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js +30 -35
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.d.ts +1 -1
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js +15 -17
- package/dist/cli/src/catci.d.ts +1 -1
- package/dist/cli/src/catci.js +63 -65
- package/dist/cli/src/catenv.d.ts +1 -1
- package/dist/cli/src/catenv.js +44 -31
- package/dist/cli/src/cli.d.ts +1 -1
- package/dist/cli/src/cli.js +185 -170
- package/dist/cli/src/commands/availability.d.ts +1 -1
- package/dist/cli/src/commands/availability.js +13 -16
- package/dist/cli/src/commands/cloudSQL/commandRestoreDb.d.ts +45 -45
- package/dist/cli/src/commands/cloudSQL/commandRestoreDb.js +92 -103
- package/dist/cli/src/commands/fun/commandDadjoke.d.ts +1 -1
- package/dist/cli/src/commands/fun/commandDadjoke.js +18 -24
- package/dist/cli/src/commands/fun/commandStarwars.d.ts +1 -1
- package/dist/cli/src/commands/fun/commandStarwars.js +12 -14
- package/dist/cli/src/commands/general/commandKubeCurrentContext.d.ts +1 -1
- package/dist/cli/src/commands/general/commandKubeCurrentContext.js +10 -12
- package/dist/cli/src/commands/general/commandKubeGetShell.d.ts +11 -11
- package/dist/cli/src/commands/general/commandKubeGetShell.js +26 -28
- package/dist/cli/src/commands/general/commandKubeListNamespaces.d.ts +1 -1
- package/dist/cli/src/commands/general/commandKubeListNamespaces.js +13 -15
- package/dist/cli/src/commands/general/commandKubeListPods.d.ts +6 -6
- package/dist/cli/src/commands/general/commandKubeListPods.js +19 -21
- package/dist/cli/src/commands/general/commandKubeListSecrets.d.ts +6 -6
- package/dist/cli/src/commands/general/commandKubeListSecrets.js +19 -21
- package/dist/cli/src/commands/general/commandKubePortForward.d.ts +19 -19
- package/dist/cli/src/commands/general/commandKubePortForward.js +29 -37
- package/dist/cli/src/commands/general/commandKubeStopPortforward.d.ts +6 -6
- package/dist/cli/src/commands/general/commandKubeStopPortforward.js +13 -19
- package/dist/cli/src/commands/index.d.ts +5 -1
- package/dist/cli/src/commands/index.js +52 -251
- package/dist/cli/src/commands/index.js.map +1 -1
- package/dist/cli/src/commands/mongodb/commandMongoDestroyMember.d.ts +15 -15
- package/dist/cli/src/commands/mongodb/commandMongoDestroyMember.js +76 -73
- package/dist/cli/src/commands/mongodb/commandMongoGetShell.d.ts +15 -15
- package/dist/cli/src/commands/mongodb/commandMongoGetShell.js +26 -28
- package/dist/cli/src/commands/mongodb/commandMongoPortForward.d.ts +20 -20
- package/dist/cli/src/commands/mongodb/commandMongoPortForward.js +45 -52
- package/dist/cli/src/commands/project/commandCloudSqlProxy.d.ts +12 -12
- package/dist/cli/src/commands/project/commandCloudSqlProxy.js +107 -110
- package/dist/cli/src/commands/project/commandConfigSecrets.d.ts +13 -8
- package/dist/cli/src/commands/project/commandConfigSecrets.js +71 -32
- package/dist/cli/src/commands/project/commandConfigSecrets.js.map +1 -1
- package/dist/cli/src/commands/project/commandDoctor.d.ts +7 -7
- package/dist/cli/src/commands/project/commandDoctor.js +18 -20
- package/dist/cli/src/commands/project/commandEnvVars.d.ts +7 -7
- package/dist/cli/src/commands/project/commandEnvVars.js +21 -26
- package/dist/cli/src/commands/project/commandGetMyTotalWorktime.d.ts +1 -1
- package/dist/cli/src/commands/project/commandGetMyTotalWorktime.js +12 -14
- package/dist/cli/src/commands/project/commandGitlabCi.d.ts +11 -11
- package/dist/cli/src/commands/project/commandGitlabCi.js +82 -91
- package/dist/cli/src/commands/project/commandOpenEnv.d.ts +7 -7
- package/dist/cli/src/commands/project/commandOpenEnv.js +24 -31
- package/dist/cli/src/commands/project/commandOpenGit.d.ts +1 -1
- package/dist/cli/src/commands/project/commandOpenGit.js +10 -12
- package/dist/cli/src/commands/project/commandOpenLogs.d.ts +7 -7
- package/dist/cli/src/commands/project/commandOpenLogs.js +34 -37
- package/dist/cli/src/commands/project/commandPortForward.d.ts +24 -24
- package/dist/cli/src/commands/project/commandPortForward.js +59 -78
- package/dist/cli/src/commands/project/commandProjectRestoreDb.d.ts +18 -18
- package/dist/cli/src/commands/project/commandProjectRestoreDb.js +156 -147
- package/dist/cli/src/commands/project/commandRenewToken.d.ts +1 -1
- package/dist/cli/src/commands/project/commandRenewToken.js +10 -12
- package/dist/cli/src/commands/project/commandSecretsClearBackups.d.ts +6 -6
- package/dist/cli/src/commands/project/commandSecretsClearBackups.js +17 -19
- package/dist/cli/src/commands/project/commandSecretsSyncGithub.d.ts +22 -22
- package/dist/cli/src/commands/project/commandSecretsSyncGithub.js +136 -144
- package/dist/cli/src/commands/project/commandSecurityEvaluate.d.ts +1 -1
- package/dist/cli/src/commands/project/commandSecurityEvaluate.js +17 -20
- package/dist/cli/src/commands/project/commandSetup.d.ts +7 -7
- package/dist/cli/src/commands/project/commandSetup.js +18 -20
- package/dist/cli/src/commands/project/k8s/commandDeletePods.d.ts +12 -12
- package/dist/cli/src/commands/project/k8s/commandDeletePods.js +38 -40
- package/dist/cli/src/commands/project/k8s/commandDeleteProject.d.ts +7 -7
- package/dist/cli/src/commands/project/k8s/commandDeleteProject.js +28 -35
- package/dist/cli/src/commands/project/k8s/commandGetShell.d.ts +12 -12
- package/dist/cli/src/commands/project/k8s/commandGetShell.js +31 -31
- package/dist/cli/src/commands/project/k8s/commandListPods.d.ts +7 -7
- package/dist/cli/src/commands/project/k8s/commandListPods.js +21 -23
- package/dist/cli/src/commands/project/k8s/commandNamespace.d.ts +7 -7
- package/dist/cli/src/commands/project/k8s/commandNamespace.js +19 -21
- package/dist/cli/src/commands/project/k8s/commandPauseProject.d.ts +7 -7
- package/dist/cli/src/commands/project/k8s/commandPauseProject.js +28 -35
- package/dist/cli/src/commands/project/k8s/commandTriggerCronjob.d.ts +22 -22
- package/dist/cli/src/commands/project/k8s/commandTriggerCronjob.js +67 -76
- package/dist/cli/src/commands/project/secrets/commandSecretsList.d.ts +24 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsList.js +64 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsList.js.map +1 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsPull.d.ts +19 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsPull.js +48 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsPull.js.map +1 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsPush.d.ts +19 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsPush.js +74 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsPush.js.map +1 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsSet.d.ts +24 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsSet.js +82 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsSet.js.map +1 -0
- package/dist/cli/src/commands/project/secrets/document.d.ts +47 -0
- package/dist/cli/src/commands/project/secrets/document.js +180 -0
- package/dist/cli/src/commands/project/secrets/document.js.map +1 -0
- package/dist/cli/src/commands/project/secrets/parseKeysInput.d.ts +2 -0
- package/dist/cli/src/commands/project/secrets/parseKeysInput.js +10 -0
- package/dist/cli/src/commands/project/secrets/parseKeysInput.js.map +1 -0
- package/dist/cli/src/commands/project/secrets/scope.d.ts +35 -0
- package/dist/cli/src/commands/project/secrets/scope.js +113 -0
- package/dist/cli/src/commands/project/secrets/scope.js.map +1 -0
- package/dist/cli/src/commands/security/commandSecurityAuditCiJob.d.ts +26 -26
- package/dist/cli/src/commands/security/commandSecurityAuditCiJob.js +62 -73
- package/dist/cli/src/commands/security/commandSecurityAuditCreate.d.ts +21 -21
- package/dist/cli/src/commands/security/commandSecurityAuditCreate.js +47 -51
- package/dist/cli/src/commands/security/commandSecurityAuditEvaluate.d.ts +6 -6
- package/dist/cli/src/commands/security/commandSecurityAuditEvaluate.js +22 -29
- package/dist/cli/src/completion.d.ts +1 -1
- package/dist/cli/src/completion.js +130 -129
- package/dist/cli/src/config/getProjectConfig.d.ts +6 -8
- package/dist/cli/src/config/getProjectConfig.js +92 -94
- package/dist/cli/src/config/parseChoice.d.ts +3 -3
- package/dist/cli/src/config/parseChoice.js +6 -11
- package/dist/cli/src/core/defineCommand.d.ts +1 -1
- package/dist/cli/src/core/defineCommand.js +4 -6
- package/dist/cli/src/core/index.d.ts +3 -3
- package/dist/cli/src/core/index.js +9 -46
- package/dist/cli/src/core/registry.d.ts +1 -1
- package/dist/cli/src/core/registry.js +10 -12
- package/dist/cli/src/core/runner.d.ts +3 -3
- package/dist/cli/src/core/runner.js +8 -10
- package/dist/cli/src/core/types.d.ts +70 -70
- package/dist/cli/src/core/types.js +14 -15
- package/dist/cli/src/gcloud/artifactsRegistry.d.ts +3 -3
- package/dist/cli/src/gcloud/artifactsRegistry.js +11 -12
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.d.ts +1 -1
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js +12 -19
- package/dist/cli/src/gcloud/cloudSql/copyDb.d.ts +9 -9
- package/dist/cli/src/gcloud/cloudSql/copyDb.js +20 -31
- package/dist/cli/src/gcloud/cloudSql/parseConnectionString.d.ts +1 -1
- package/dist/cli/src/gcloud/cloudSql/parseConnectionString.js +10 -12
- package/dist/cli/src/gcloud/cloudSql/startProxy.d.ts +4 -4
- package/dist/cli/src/gcloud/cloudSql/startProxy.js +39 -55
- package/dist/cli/src/gcloud/enableServices.d.ts +2 -2
- package/dist/cli/src/gcloud/enableServices.js +6 -8
- package/dist/cli/src/gcloud/getProjectNumber.d.ts +1 -1
- package/dist/cli/src/gcloud/getProjectNumber.js +10 -12
- package/dist/cli/src/gcloud/openDashboard.d.ts +1 -1
- package/dist/cli/src/gcloud/openDashboard.js +13 -17
- package/dist/cli/src/gcloud/serviceAccountNames.d.ts +11 -11
- package/dist/cli/src/gcloud/serviceAccountNames.js +27 -34
- package/dist/cli/src/gcloud/serviceAccounts.d.ts +6 -6
- package/dist/cli/src/gcloud/serviceAccounts.js +37 -46
- package/dist/cli/src/git/getGetMainBranch.d.ts +1 -1
- package/dist/cli/src/git/getGetMainBranch.js +5 -9
- package/dist/cli/src/git/gitConfig.d.ts +6 -11
- package/dist/cli/src/git/gitConfig.js +11 -17
- package/dist/cli/src/git/gitProjectInformation.d.ts +6 -6
- package/dist/cli/src/git/gitProjectInformation.js +20 -30
- package/dist/cli/src/git/index.d.ts +1 -1
- package/dist/cli/src/git/index.js +16 -23
- package/dist/cli/src/index.d.ts +1 -1
- package/dist/cli/src/index.js +2 -4
- package/dist/cli/src/k8sApi/index.d.ts +1 -1
- package/dist/cli/src/k8sApi/index.js +12 -14
- package/dist/cli/src/kubernetes/index.d.ts +1 -1
- package/dist/cli/src/kubernetes/index.js +17 -24
- package/dist/cli/src/kubernetes/openKubernetesDashboards.d.ts +1 -1
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js +33 -35
- package/dist/cli/src/kubernetes/portForward.d.ts +1 -1
- package/dist/cli/src/kubernetes/portForward.js +5 -7
- package/dist/cli/src/packageInfos.d.ts +1 -1
- package/dist/cli/src/packageInfos.js +3 -5
- package/dist/cli/src/release/changesets.d.ts +4 -4
- package/dist/cli/src/release/changesets.js +68 -60
- package/dist/cli/src/release/changesetsReleaseJob.d.ts +1 -1
- package/dist/cli/src/release/changesetsReleaseJob.js +99 -99
- package/dist/cli/src/scripts/generateCliSkillReference.d.ts +1 -1
- package/dist/cli/src/scripts/generateCliSkillReference.js +85 -62
- package/dist/cli/src/security/auditDocument.d.ts +16 -16
- package/dist/cli/src/security/auditDocument.js +65 -54
- package/dist/cli/src/security/createSecurityAuditMergeRequest.d.ts +6 -11
- package/dist/cli/src/security/createSecurityAuditMergeRequest.js +43 -43
- package/dist/cli/src/security/evaluateSecurityAudit.d.ts +3 -5
- package/dist/cli/src/security/evaluateSecurityAudit.js +12 -16
- package/dist/cli/src/store/updateCatladderStore.d.ts +4 -4
- package/dist/cli/src/store/updateCatladderStore.js +12 -16
- package/dist/cli/src/types/types.d.ts +13 -13
- package/dist/cli/src/types/types.js +2 -4
- package/dist/cli/src/utils/boxWithAscii.d.ts +1 -1
- package/dist/cli/src/utils/boxWithAscii.js +10 -12
- package/dist/cli/src/utils/cluster.d.ts +1 -1
- package/dist/cli/src/utils/cluster.js +6 -8
- package/dist/cli/src/utils/concurrency.d.ts +1 -1
- package/dist/cli/src/utils/concurrency.js +13 -17
- package/dist/cli/src/utils/editAsFile.d.ts +1 -1
- package/dist/cli/src/utils/editAsFile.js +17 -25
- package/dist/cli/src/utils/files.d.ts +1 -1
- package/dist/cli/src/utils/files.js +12 -15
- package/dist/cli/src/utils/getEditor.d.ts +2 -2
- package/dist/cli/src/utils/getEditor.js +14 -20
- package/dist/cli/src/utils/github.d.ts +1 -1
- package/dist/cli/src/utils/github.js +60 -47
- package/dist/cli/src/utils/gitlab.d.ts +9 -9
- package/dist/cli/src/utils/gitlab.js +173 -189
- package/dist/cli/src/utils/log.d.ts +2 -2
- package/dist/cli/src/utils/log.js +16 -18
- package/dist/cli/src/utils/portForwards.d.ts +5 -5
- package/dist/cli/src/utils/portForwards.js +31 -32
- package/dist/cli/src/utils/preferences.d.ts +1 -1
- package/dist/cli/src/utils/preferences.js +36 -43
- package/dist/cli/src/utils/projects/index.d.ts +1 -1
- package/dist/cli/src/utils/projects/index.js +21 -24
- package/dist/cli/src/utils/promise.d.ts +1 -1
- package/dist/cli/src/utils/promise.js +6 -8
- package/dist/cli/src/utils/readStdin.d.ts +2 -0
- package/dist/cli/src/utils/readStdin.js +13 -0
- package/dist/cli/src/utils/readStdin.js.map +1 -0
- package/dist/cli/src/utils/shell.d.ts +1 -1
- package/dist/cli/src/utils/shell.js +19 -20
- package/dist/cli/src/vault/BitwardenVault.d.ts +20 -20
- package/dist/cli/src/vault/BitwardenVault.js +98 -84
- package/dist/cli/src/vault/GitlabVault.d.ts +4 -4
- package/dist/cli/src/vault/GitlabVault.js +13 -15
- package/dist/cli/src/vault/VaultManager.d.ts +32 -32
- package/dist/cli/src/vault/VaultManager.js +104 -98
- package/dist/cli/src/vault/bw.d.ts +3 -5
- package/dist/cli/src/vault/bw.js +54 -61
- package/dist/cli/src/vault/cache.d.ts +9 -9
- package/dist/cli/src/vault/cache.js +27 -33
- package/dist/cli/src/vault/index.d.ts +1 -1
- package/dist/cli/src/vault/index.js +18 -40
- package/dist/cli/src/vault/types.d.ts +16 -16
- package/dist/cli/src/vault/types.js +2 -4
- package/dist/pipeline/src/agentSkills/generateAgentSkills.d.ts +1 -1
- package/dist/pipeline/src/agentSkills/generateAgentSkills.js +47 -43
- package/dist/pipeline/src/agentSkills/index.d.ts +1 -1
- package/dist/pipeline/src/agentSkills/index.js +16 -23
- package/dist/pipeline/src/agentSkills/shippedSkills.d.ts +8 -8
- package/dist/pipeline/src/agentSkills/shippedSkills.js +38 -35
- package/dist/pipeline/src/agentSkills/types.d.ts +8 -8
- package/dist/pipeline/src/agentSkills/types.js +13 -14
- package/dist/pipeline/src/backends/github/GithubBackend.d.ts +9 -9
- package/dist/pipeline/src/backends/github/GithubBackend.js +253 -276
- package/dist/pipeline/src/backends/github/GithubBackend.js.map +1 -1
- package/dist/pipeline/src/backends/github/ciVariables.d.ts +1 -1
- package/dist/pipeline/src/backends/github/ciVariables.js +15 -17
- package/dist/pipeline/src/backends/github/createGithubJobs.d.ts +3 -3
- package/dist/pipeline/src/backends/github/createGithubJobs.js +316 -264
- package/dist/pipeline/src/backends/github/githubReleaseJobs.d.ts +3 -3
- package/dist/pipeline/src/backends/github/githubReleaseJobs.js +64 -71
- package/dist/pipeline/src/backends/github/index.d.ts +1 -1
- package/dist/pipeline/src/backends/github/index.js +16 -23
- package/dist/pipeline/src/backends/github/scriptFiles.d.ts +8 -8
- package/dist/pipeline/src/backends/github/scriptFiles.js +27 -29
- package/dist/pipeline/src/backends/github/scriptFunctions.d.ts +1 -1
- package/dist/pipeline/src/backends/github/scriptFunctions.js +10 -10
- package/dist/pipeline/src/backends/gitlab/GitlabBackend.d.ts +13 -13
- package/dist/pipeline/src/backends/gitlab/GitlabBackend.js +163 -178
- package/dist/pipeline/src/backends/gitlab/GitlabBackend.js.map +1 -1
- package/dist/pipeline/src/backends/gitlab/cache.d.ts +5 -5
- package/dist/pipeline/src/backends/gitlab/cache.js +24 -26
- package/dist/pipeline/src/backends/gitlab/ciVariables.d.ts +1 -1
- package/dist/pipeline/src/backends/gitlab/ciVariables.js +9 -11
- package/dist/pipeline/src/backends/gitlab/createGitlabJobs.d.ts +4 -4
- package/dist/pipeline/src/backends/gitlab/createGitlabJobs.js +277 -289
- package/dist/pipeline/src/backends/gitlab/createGitlabJobs.js.map +1 -1
- package/dist/pipeline/src/backends/gitlab/createGitlabPipeline.d.ts +2 -7
- package/dist/pipeline/src/backends/gitlab/createGitlabPipeline.js +66 -65
- package/dist/pipeline/src/backends/gitlab/createGitlabPipeline.js.map +1 -1
- package/dist/pipeline/src/backends/gitlab/getPipelineStages.d.ts +1 -1
- package/dist/pipeline/src/backends/gitlab/getPipelineStages.js +10 -8
- package/dist/pipeline/src/backends/gitlab/gitlabReleaseJobs.d.ts +34 -34
- package/dist/pipeline/src/backends/gitlab/gitlabReleaseJobs.js +55 -45
- package/dist/pipeline/src/backends/gitlab/index.d.ts +1 -1
- package/dist/pipeline/src/backends/gitlab/index.js +16 -23
- package/dist/pipeline/src/backends/gitlab/sortGitLabJobDefProps.d.ts +1 -1
- package/dist/pipeline/src/backends/gitlab/sortGitLabJobDefProps.js +40 -10
- package/dist/pipeline/src/backends/index.d.ts +1 -1
- package/dist/pipeline/src/backends/index.js +41 -56
- package/dist/pipeline/src/backends/types.d.ts +19 -19
- package/dist/pipeline/src/backends/types.js +2 -4
- package/dist/pipeline/src/bash/BashExpression.d.ts +18 -18
- package/dist/pipeline/src/bash/BashExpression.js +45 -44
- package/dist/pipeline/src/bash/bashEscape.d.ts +4 -6
- package/dist/pipeline/src/bash/bashEscape.js +77 -67
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.d.ts +5 -3
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js +6 -7
- package/dist/pipeline/src/bash/bashYaml.d.ts +1 -1
- package/dist/pipeline/src/bash/bashYaml.js +46 -41
- package/dist/pipeline/src/bash/ciVariables.d.ts +2 -2
- package/dist/pipeline/src/bash/ciVariables.js +10 -12
- package/dist/pipeline/src/bash/getInjectVarsScript.d.ts +1 -1
- package/dist/pipeline/src/bash/getInjectVarsScript.js +14 -11
- package/dist/pipeline/src/bash/index.d.ts +1 -1
- package/dist/pipeline/src/bash/index.js +16 -23
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.d.ts +1 -1
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +49 -41
- package/dist/pipeline/src/build/base/constants.d.ts +4 -4
- package/dist/pipeline/src/build/base/constants.js +6 -8
- package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +3 -3
- package/dist/pipeline/src/build/base/createAppBuildJob.js +53 -47
- package/dist/pipeline/src/build/base/createArtifactsConfig.d.ts +1 -1
- package/dist/pipeline/src/build/base/createArtifactsConfig.js +25 -16
- package/dist/pipeline/src/build/base/createBuildJobDefinition.d.ts +3 -3
- package/dist/pipeline/src/build/base/createBuildJobDefinition.js +22 -16
- package/dist/pipeline/src/build/base/index.d.ts +4 -4
- package/dist/pipeline/src/build/base/index.js +34 -15
- package/dist/pipeline/src/build/base/writeBuildInfo.d.ts +1 -1
- package/dist/pipeline/src/build/base/writeBuildInfo.js +7 -7
- package/dist/pipeline/src/build/base/writeDotEnv.d.ts +1 -1
- package/dist/pipeline/src/build/base/writeDotEnv.js +21 -19
- package/dist/pipeline/src/build/cache/createJobCache.d.ts +1 -1
- package/dist/pipeline/src/build/cache/createJobCache.js +55 -58
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.d.ts +1 -1
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +23 -16
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.d.ts +1 -1
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.js +12 -14
- package/dist/pipeline/src/build/custom/buildJob.d.ts +1 -1
- package/dist/pipeline/src/build/custom/buildJob.js +16 -16
- package/dist/pipeline/src/build/custom/index.d.ts +1 -1
- package/dist/pipeline/src/build/custom/index.js +8 -7
- package/dist/pipeline/src/build/custom/testJob.d.ts +2 -2
- package/dist/pipeline/src/build/custom/testJob.js +71 -67
- package/dist/pipeline/src/build/docker.d.ts +45 -51
- package/dist/pipeline/src/build/docker.js +139 -116
- package/dist/pipeline/src/build/index.d.ts +17 -13
- package/dist/pipeline/src/build/index.js +73 -80
- package/dist/pipeline/src/build/node/buildJob.d.ts +1 -1
- package/dist/pipeline/src/build/node/buildJob.js +45 -35
- package/dist/pipeline/src/build/node/cache.d.ts +1 -1
- package/dist/pipeline/src/build/node/cache.js +79 -52
- package/dist/pipeline/src/build/node/constants.d.ts +4 -4
- package/dist/pipeline/src/build/node/constants.js +6 -8
- package/dist/pipeline/src/build/node/index.d.ts +1 -1
- package/dist/pipeline/src/build/node/index.js +17 -13
- package/dist/pipeline/src/build/node/meteor.d.ts +1 -1
- package/dist/pipeline/src/build/node/meteor.js +59 -40
- package/dist/pipeline/src/build/node/testJob.d.ts +1 -1
- package/dist/pipeline/src/build/node/testJob.js +100 -75
- package/dist/pipeline/src/build/node/yarn.d.ts +2 -2
- package/dist/pipeline/src/build/node/yarn.js +51 -33
- package/dist/pipeline/src/build/rails/build.d.ts +1 -1
- package/dist/pipeline/src/build/rails/build.js +44 -37
- package/dist/pipeline/src/build/rails/index.d.ts +1 -1
- package/dist/pipeline/src/build/rails/index.js +8 -7
- package/dist/pipeline/src/build/rails/testJob.d.ts +1 -1
- package/dist/pipeline/src/build/rails/testJob.js +101 -71
- package/dist/pipeline/src/build/types.d.ts +324 -324
- package/dist/pipeline/src/build/types.js +10 -10
- package/dist/pipeline/src/catci/shippedCatci.d.ts +3 -3
- package/dist/pipeline/src/catci/shippedCatci.js +22 -21
- package/dist/pipeline/src/catenv/index.d.ts +3 -3
- package/dist/pipeline/src/catenv/index.js +8 -10
- package/dist/pipeline/src/config/configruedEnvs.d.ts +1 -1
- package/dist/pipeline/src/config/configruedEnvs.js +23 -18
- package/dist/pipeline/src/config/index.d.ts +1 -1
- package/dist/pipeline/src/config/index.js +16 -23
- package/dist/pipeline/src/config/readConfig.d.ts +4 -4
- package/dist/pipeline/src/config/readConfig.js +37 -42
- package/dist/pipeline/src/context/createAllComponentsContext.d.ts +4 -8
- package/dist/pipeline/src/context/createAllComponentsContext.js +16 -22
- package/dist/pipeline/src/context/createComponentContext.d.ts +6 -6
- package/dist/pipeline/src/context/createComponentContext.js +96 -87
- package/dist/pipeline/src/context/createWorkspaceContext.d.ts +8 -15
- package/dist/pipeline/src/context/createWorkspaceContext.js +28 -37
- package/dist/pipeline/src/context/getBuildInfoVariables.d.ts +2 -2
- package/dist/pipeline/src/context/getBuildInfoVariables.js +21 -22
- package/dist/pipeline/src/context/getEnvConfig.d.ts +1 -1
- package/dist/pipeline/src/context/getEnvConfig.js +28 -29
- package/dist/pipeline/src/context/getEnvType.d.ts +2 -2
- package/dist/pipeline/src/context/getEnvType.js +9 -10
- package/dist/pipeline/src/context/getEnvironment.d.ts +1 -1
- package/dist/pipeline/src/context/getEnvironment.js +16 -20
- package/dist/pipeline/src/context/getEnvironmentContext.d.ts +1 -6
- package/dist/pipeline/src/context/getEnvironmentContext.js +28 -35
- package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +19 -19
- package/dist/pipeline/src/context/getEnvironmentVariables.js +95 -102
- package/dist/pipeline/src/context/getLabels.d.ts +7 -7
- package/dist/pipeline/src/context/getLabels.js +25 -26
- package/dist/pipeline/src/context/getReviewSlug.d.ts +1 -1
- package/dist/pipeline/src/context/getReviewSlug.js +12 -14
- package/dist/pipeline/src/context/index.d.ts +1 -1
- package/dist/pipeline/src/context/index.js +16 -23
- package/dist/pipeline/src/context/transformJobOnlyVars.d.ts +3 -3
- package/dist/pipeline/src/context/transformJobOnlyVars.js +21 -21
- package/dist/pipeline/src/context/utils/envVars.d.ts +3 -3
- package/dist/pipeline/src/context/utils/envVars.js +20 -26
- package/dist/pipeline/src/customImages/hash.d.ts +7 -7
- package/dist/pipeline/src/customImages/hash.js +53 -59
- package/dist/pipeline/src/customImages/jobImagesPlan.d.ts +44 -46
- package/dist/pipeline/src/customImages/jobImagesPlan.js +131 -145
- package/dist/pipeline/src/customImages/jobImagesPlan.js.map +1 -1
- package/dist/pipeline/src/customImages/shippedImages.d.ts +1 -10
- package/dist/pipeline/src/customImages/shippedImages.js +28 -38
- package/dist/pipeline/src/customImages/shippedImages.js.map +1 -1
- package/dist/pipeline/src/defaults/index.d.ts +1 -1
- package/dist/pipeline/src/defaults/index.js +4 -6
- package/dist/pipeline/src/deploy/base/deploy.d.ts +2 -2
- package/dist/pipeline/src/deploy/base/deploy.js +113 -92
- package/dist/pipeline/src/deploy/base/index.d.ts +4 -4
- package/dist/pipeline/src/deploy/base/index.js +10 -6
- package/dist/pipeline/src/deploy/base/rollback.d.ts +2 -2
- package/dist/pipeline/src/deploy/base/rollback.js +27 -31
- package/dist/pipeline/src/deploy/base/stop.d.ts +2 -2
- package/dist/pipeline/src/deploy/base/stop.js +26 -31
- package/dist/pipeline/src/deploy/base/variables.d.ts +4 -4
- package/dist/pipeline/src/deploy/base/variables.js +6 -8
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js +67 -55
- package/dist/pipeline/src/deploy/cloudRun/cleanup.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cleanup.js +17 -16
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js +41 -44
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.d.ts +4 -4
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +63 -58
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js +73 -63
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.js +38 -38
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.d.ts +7 -7
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js +37 -35
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.js +3 -5
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js +67 -57
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.js +139 -130
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +29 -10
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +23 -9
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.d.ts +3 -3
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js +39 -36
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js +37 -36
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js +13 -19
- package/dist/pipeline/src/deploy/cloudRun/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/index.js +100 -91
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.d.ts +5 -9
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.js +7 -13
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js +17 -13
- package/dist/pipeline/src/deploy/cloudRun/utils/database.d.ts +5 -5
- package/dist/pipeline/src/deploy/cloudRun/utils/database.js +82 -49
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js +6 -6
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js +9 -7
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js +5 -7
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js +3 -5
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js +4 -6
- package/dist/pipeline/src/deploy/cloudSql/utils.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudSql/utils.js +9 -7
- package/dist/pipeline/src/deploy/custom/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/custom/deployJob.js +34 -30
- package/dist/pipeline/src/deploy/custom/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/custom/index.js +7 -9
- package/dist/pipeline/src/deploy/dockerTag/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/dockerTag/deployJob.js +22 -18
- package/dist/pipeline/src/deploy/dockerTag/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/dockerTag/index.js +7 -9
- package/dist/pipeline/src/deploy/index.d.ts +13 -11
- package/dist/pipeline/src/deploy/index.js +20 -27
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.d.ts +3 -5
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js +19 -25
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.d.ts +7 -7
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js +35 -36
- package/dist/pipeline/src/deploy/kubernetes/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js +61 -46
- package/dist/pipeline/src/deploy/kubernetes/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/kubernetes/index.js +45 -54
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.d.ts +3 -3
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js +34 -35
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +84 -84
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +63 -70
- package/dist/pipeline/src/deploy/kubernetes/mongodb.d.ts +28 -28
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js +93 -88
- package/dist/pipeline/src/deploy/types/base.d.ts +27 -27
- package/dist/pipeline/src/deploy/types/base.js +2 -4
- package/dist/pipeline/src/deploy/types/custom.d.ts +25 -25
- package/dist/pipeline/src/deploy/types/custom.js +2 -4
- package/dist/pipeline/src/deploy/types/dockerTag.d.ts +10 -10
- package/dist/pipeline/src/deploy/types/dockerTag.js +2 -4
- package/dist/pipeline/src/deploy/types/executeBase.d.ts +15 -15
- package/dist/pipeline/src/deploy/types/executeBase.js +2 -4
- package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +439 -439
- package/dist/pipeline/src/deploy/types/googleCloudRun.js +14 -16
- package/dist/pipeline/src/deploy/types/index.d.ts +6 -6
- package/dist/pipeline/src/deploy/types/index.js +21 -27
- package/dist/pipeline/src/deploy/types/kubernetes.d.ts +255 -255
- package/dist/pipeline/src/deploy/types/kubernetes.js +2 -4
- package/dist/pipeline/src/deploy/utils.d.ts +1 -1
- package/dist/pipeline/src/deploy/utils.js +21 -23
- package/dist/pipeline/src/globalScriptFunctions/index.d.ts +6 -6
- package/dist/pipeline/src/globalScriptFunctions/index.js +19 -21
- package/dist/pipeline/src/index.d.ts +1 -1
- package/dist/pipeline/src/index.js +16 -23
- package/dist/pipeline/src/pipeline/agent/createAgentContext.d.ts +19 -19
- package/dist/pipeline/src/pipeline/agent/createAgentContext.js +37 -41
- package/dist/pipeline/src/pipeline/agent/createAgentEventJob.d.ts +2 -2
- package/dist/pipeline/src/pipeline/agent/createAgentEventJob.js +27 -26
- package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.d.ts +2 -2
- package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.js +43 -35
- package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.js +5 -7
- package/dist/pipeline/src/pipeline/agent/prompts.d.ts +2 -2
- package/dist/pipeline/src/pipeline/agent/prompts.js +14 -32
- package/dist/pipeline/src/pipeline/agent/shared.d.ts +4 -6
- package/dist/pipeline/src/pipeline/agent/shared.js +34 -36
- package/dist/pipeline/src/pipeline/agent/utils.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/utils.js +9 -11
- package/dist/pipeline/src/pipeline/createAllJobs.d.ts +13 -17
- package/dist/pipeline/src/pipeline/createAllJobs.js +44 -56
- package/dist/pipeline/src/pipeline/createJobsForComponent.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createJobsForComponent.js +30 -27
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.js +6 -8
- package/dist/pipeline/src/pipeline/generatePipelineFiles.d.ts +1 -1
- package/dist/pipeline/src/pipeline/generatePipelineFiles.js +35 -45
- package/dist/pipeline/src/pipeline/index.d.ts +1 -1
- package/dist/pipeline/src/pipeline/index.js +16 -23
- package/dist/pipeline/src/pipeline/packageManager.d.ts +1 -1
- package/dist/pipeline/src/pipeline/packageManager.js +59 -47
- package/dist/pipeline/src/pipeline/resolveRequirements.d.ts +1 -1
- package/dist/pipeline/src/pipeline/resolveRequirements.js +63 -66
- package/dist/pipeline/src/release/index.d.ts +11 -11
- package/dist/pipeline/src/release/index.js +12 -17
- package/dist/pipeline/src/rules/index.d.ts +1 -1
- package/dist/pipeline/src/rules/index.js +15 -15
- package/dist/pipeline/src/runner/index.d.ts +5 -10
- package/dist/pipeline/src/runner/index.js +9 -14
- package/dist/pipeline/src/runner/index.js.map +1 -1
- package/dist/pipeline/src/store/index.d.ts +5 -5
- package/dist/pipeline/src/store/index.js +31 -31
- package/dist/pipeline/src/types/agent.d.ts +15 -15
- package/dist/pipeline/src/types/agent.js +2 -4
- package/dist/pipeline/src/types/config.d.ts +244 -248
- package/dist/pipeline/src/types/config.js +28 -24
- package/dist/pipeline/src/types/context.d.ts +104 -104
- package/dist/pipeline/src/types/context.js +7 -9
- package/dist/pipeline/src/types/environmentContext.d.ts +25 -25
- package/dist/pipeline/src/types/environmentContext.js +2 -4
- package/dist/pipeline/src/types/github-types.d.ts +41 -41
- package/dist/pipeline/src/types/github-types.js +2 -4
- package/dist/pipeline/src/types/gitlab-ci-yml.d.ts +497 -497
- package/dist/pipeline/src/types/gitlab-ci-yml.js +2 -4
- package/dist/pipeline/src/types/gitlab-types.d.ts +15 -15
- package/dist/pipeline/src/types/gitlab-types.js +2 -4
- package/dist/pipeline/src/types/hooks.d.ts +26 -26
- package/dist/pipeline/src/types/hooks.js +2 -4
- package/dist/pipeline/src/types/index.d.ts +1 -1
- package/dist/pipeline/src/types/index.js +16 -23
- package/dist/pipeline/src/types/jobDefinition.d.ts +3 -3
- package/dist/pipeline/src/types/jobDefinition.js +2 -4
- package/dist/pipeline/src/types/jobs.d.ts +172 -171
- package/dist/pipeline/src/types/jobs.js +28 -15
- package/dist/pipeline/src/types/pipeline.d.ts +1 -1
- package/dist/pipeline/src/types/pipeline.js +2 -4
- package/dist/pipeline/src/types/release.d.ts +11 -11
- package/dist/pipeline/src/types/release.js +2 -4
- package/dist/pipeline/src/types/utils.d.ts +3 -1
- package/dist/pipeline/src/types/utils.js +2 -4
- package/dist/pipeline/src/utils/gitlab.d.ts +7 -7
- package/dist/pipeline/src/utils/gitlab.js +15 -12
- package/dist/pipeline/src/utils/index.d.ts +1 -1
- package/dist/pipeline/src/utils/index.js +9 -12
- package/dist/pipeline/src/utils/jsonParse.d.ts +1 -1
- package/dist/pipeline/src/utils/jsonParse.js +10 -11
- package/dist/pipeline/src/utils/measureTime.d.ts +4 -4
- package/dist/pipeline/src/utils/measureTime.js +34 -39
- package/dist/pipeline/src/utils/removeUndefined.d.ts +1 -1
- package/dist/pipeline/src/utils/removeUndefined.js +4 -6
- package/dist/pipeline/src/utils/writeFiles.d.ts +16 -16
- package/dist/pipeline/src/utils/writeFiles.js +67 -61
- package/dist/pipeline/src/variables/VariableValue.d.ts +1 -1
- package/dist/pipeline/src/variables/VariableValue.js +2 -4
- package/dist/pipeline/src/variables/VariableValueContainingReferences.d.ts +12 -12
- package/dist/pipeline/src/variables/VariableValueContainingReferences.js +51 -45
- package/dist/pipeline/src/variables/resolveAllReferences.d.ts +1 -1
- package/dist/pipeline/src/variables/resolveAllReferences.js +18 -17
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.d.ts +2 -2
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.js +17 -14
- package/dist/pipeline/src/variables/resolveReferencesOnce.d.ts +3 -3
- package/dist/pipeline/src/variables/resolveReferencesOnce.js +16 -17
- package/dist/pipeline/src/verify/createVerifyJobs.d.ts +1 -1
- package/dist/pipeline/src/verify/createVerifyJobs.js +62 -55
- package/dist/pipeline/src/verify/index.d.ts +1 -1
- package/dist/pipeline/src/verify/index.js +16 -23
- package/dist/pipeline/src/verify/types.d.ts +11 -11
- package/dist/pipeline/src/verify/types.js +2 -4
- package/dist/skills/catladder-cli/references/commands.md +37 -2
- package/dist/skills/catladder-pipelines/SKILL.md +6 -6
- package/dist/skills/catladder-secrets/SKILL.md +42 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -7
- package/src/commands/index.ts +4 -0
- package/src/commands/project/commandConfigSecrets.ts +76 -15
- package/src/commands/project/secrets/__tests__/document.test.ts +122 -0
- package/src/commands/project/secrets/commandSecretsList.ts +75 -0
- package/src/commands/project/secrets/commandSecretsPull.ts +55 -0
- package/src/commands/project/secrets/commandSecretsPush.ts +100 -0
- package/src/commands/project/secrets/commandSecretsSet.ts +102 -0
- package/src/commands/project/secrets/document.ts +269 -0
- package/src/commands/project/secrets/parseKeysInput.ts +8 -0
- package/src/commands/project/secrets/scope.ts +151 -0
- package/src/utils/readStdin.ts +8 -0
- package/babel-inline.json +0 -11
- package/dist/bundles/runner-images/semantic-release-central.Dockerfile +0 -36
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.d.ts +0 -2
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js +0 -192
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js.map +0 -1
- package/dist/pipeline/src/constants.d.ts +0 -2
- package/dist/pipeline/src/constants.js +0 -8
- package/dist/pipeline/src/constants.js.map +0 -1
- package/dist/runner-images/semantic-release-central.Dockerfile +0 -36
- package/src/apps/cli/commands/project/commandConfigSecrets.ts +0 -322
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatScope = exports.getScopedSecretKeys = exports.getDeclaredSecretKeys = exports.secretsScopeChoices = exports.resolveSecretsScope = void 0;
|
|
4
|
+
const getProjectConfig_1 = require("../../../config/getProjectConfig");
|
|
5
|
+
/**
|
|
6
|
+
* resolves a scope expression to component → envs:
|
|
7
|
+
* - (empty): all components, all envs
|
|
8
|
+
* - `env:component`: one env of one component
|
|
9
|
+
* - `env` / `env:`: one env, every component that has it
|
|
10
|
+
* - `:component`: every env of one component
|
|
11
|
+
*/
|
|
12
|
+
const resolveSecretsScope = async (scope) => {
|
|
13
|
+
const all = await (0, getProjectConfig_1.getAllComponentsWithAllEnvsHierarchical)();
|
|
14
|
+
if (Object.keys(all).length === 0) {
|
|
15
|
+
throw new Error("no catladder config found");
|
|
16
|
+
}
|
|
17
|
+
if (!scope) {
|
|
18
|
+
return all;
|
|
19
|
+
}
|
|
20
|
+
const [env, componentName] = scope.split(":").map((x) => x || null);
|
|
21
|
+
if (componentName && !(componentName in all)) {
|
|
22
|
+
throw new Error(`unknown component "${componentName}" — components: ${Object.keys(all).join(", ")}`);
|
|
23
|
+
}
|
|
24
|
+
const scoped = Object.fromEntries(Object.entries(all)
|
|
25
|
+
.filter(([name]) => !componentName || name === componentName)
|
|
26
|
+
.map(([name, envs]) => [
|
|
27
|
+
name,
|
|
28
|
+
env ? envs.filter((e) => e === env) : envs,
|
|
29
|
+
])
|
|
30
|
+
.filter(([, envs]) => envs.length > 0));
|
|
31
|
+
if (Object.keys(scoped).length === 0) {
|
|
32
|
+
const allEnvs = [...new Set(Object.values(all).flat())];
|
|
33
|
+
throw new Error(`no component has the environment "${env}" — environments: ${allEnvs.join(", ")}`);
|
|
34
|
+
}
|
|
35
|
+
return scoped;
|
|
36
|
+
};
|
|
37
|
+
exports.resolveSecretsScope = resolveSecretsScope;
|
|
38
|
+
/**
|
|
39
|
+
* all valid scope expressions, for autocompletion: `env:component`
|
|
40
|
+
* pairs plus the `env:` (one env, all components) and `:component`
|
|
41
|
+
* (one component, all envs) forms
|
|
42
|
+
*/
|
|
43
|
+
const secretsScopeChoices = async () => {
|
|
44
|
+
const all = await (0, getProjectConfig_1.getAllComponentsWithAllEnvsHierarchical)();
|
|
45
|
+
const pairs = Object.entries(all).flatMap(([componentName, envs]) => envs.map((env) => `${env}:${componentName}`));
|
|
46
|
+
const envs = [...new Set(Object.values(all).flat())];
|
|
47
|
+
return [
|
|
48
|
+
...pairs,
|
|
49
|
+
...envs.map((env) => `${env}:`),
|
|
50
|
+
...Object.keys(all).map((componentName) => `:${componentName}`),
|
|
51
|
+
];
|
|
52
|
+
};
|
|
53
|
+
exports.secretsScopeChoices = secretsScopeChoices;
|
|
54
|
+
/** the secret keys declared in the config for one env of one component */
|
|
55
|
+
const getDeclaredSecretKeys = async (env, componentName) => {
|
|
56
|
+
const { secretEnvVarKeys, jobOnlyVars } = await (0, getProjectConfig_1.getEnvironment)(env, componentName);
|
|
57
|
+
return [
|
|
58
|
+
...jobOnlyVars.build.secretEnvVarKeys,
|
|
59
|
+
...jobOnlyVars.deploy.secretEnvVarKeys,
|
|
60
|
+
...secretEnvVarKeys,
|
|
61
|
+
]
|
|
62
|
+
.filter((k) => !k.hidden)
|
|
63
|
+
.map((k) => k.key);
|
|
64
|
+
};
|
|
65
|
+
exports.getDeclaredSecretKeys = getDeclaredSecretKeys;
|
|
66
|
+
/**
|
|
67
|
+
* expands a scope to its declared secret keys, optionally filtered to
|
|
68
|
+
* `onlyKeys`. Throws when a requested key is not declared anywhere in
|
|
69
|
+
* the scope (typo protection); env/component pairs without matching
|
|
70
|
+
* keys are dropped.
|
|
71
|
+
*/
|
|
72
|
+
const getScopedSecretKeys = async (scope, onlyKeys) => {
|
|
73
|
+
const scoped = [];
|
|
74
|
+
const declaredAnywhere = new Set();
|
|
75
|
+
for (const [componentName, envs] of Object.entries(scope)) {
|
|
76
|
+
for (const env of envs) {
|
|
77
|
+
const declared = await (0, exports.getDeclaredSecretKeys)(env, componentName);
|
|
78
|
+
declared.forEach((key) => declaredAnywhere.add(key));
|
|
79
|
+
const keys = onlyKeys
|
|
80
|
+
? declared.filter((key) => onlyKeys.includes(key))
|
|
81
|
+
: declared;
|
|
82
|
+
if (keys.length > 0) {
|
|
83
|
+
scoped.push({ env, componentName, keys });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
const unknownKeys = (onlyKeys !== null && onlyKeys !== void 0 ? onlyKeys : []).filter((key) => !declaredAnywhere.has(key));
|
|
88
|
+
if (unknownKeys.length > 0) {
|
|
89
|
+
throw new Error(`these secrets are not declared in this scope: ${unknownKeys.join(", ")}` +
|
|
90
|
+
`\ndeclared secrets: ${[...declaredAnywhere].join(", ")}`);
|
|
91
|
+
}
|
|
92
|
+
if (scoped.length === 0) {
|
|
93
|
+
throw new Error("there are no secrets to configure in this scope");
|
|
94
|
+
}
|
|
95
|
+
return scoped;
|
|
96
|
+
};
|
|
97
|
+
exports.getScopedSecretKeys = getScopedSecretKeys;
|
|
98
|
+
/** human-readable one-line-per-component summary of a scope */
|
|
99
|
+
const formatScope = (scoped) => {
|
|
100
|
+
var _a;
|
|
101
|
+
const byComponent = new Map();
|
|
102
|
+
for (const { env, componentName } of scoped) {
|
|
103
|
+
byComponent.set(componentName, [
|
|
104
|
+
...((_a = byComponent.get(componentName)) !== null && _a !== void 0 ? _a : []),
|
|
105
|
+
env,
|
|
106
|
+
]);
|
|
107
|
+
}
|
|
108
|
+
return [...byComponent.entries()]
|
|
109
|
+
.map(([componentName, envs]) => `- ${componentName}: ${envs.join(", ")}`)
|
|
110
|
+
.join("\n");
|
|
111
|
+
};
|
|
112
|
+
exports.formatScope = formatScope;
|
|
113
|
+
//# sourceMappingURL=scope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.js","sourceRoot":"","sources":["../../../../../../src/commands/project/secrets/scope.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
export declare const commandSecurityAuditCiJob: import("../../core").CommandDef<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}>;
|
|
2
|
+
readonly path: {
|
|
3
|
+
readonly type: "string";
|
|
4
|
+
readonly message: "path to project root";
|
|
5
|
+
readonly positional: true;
|
|
6
|
+
};
|
|
7
|
+
readonly token: {
|
|
8
|
+
readonly type: "string";
|
|
9
|
+
readonly message: "GitLab token (api scope)";
|
|
10
|
+
readonly positional: true;
|
|
11
|
+
};
|
|
12
|
+
readonly mainBranch: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly message: "main branch name";
|
|
15
|
+
readonly positional: true;
|
|
16
|
+
};
|
|
17
|
+
readonly projectId: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly message: "GitLab project ID";
|
|
20
|
+
readonly positional: true;
|
|
21
|
+
};
|
|
22
|
+
readonly userId: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly message: "GitLab user ID (assignee)";
|
|
25
|
+
readonly positional: true;
|
|
26
|
+
};
|
|
27
|
+
}>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.commandSecurityAuditCiJob = void 0;
|
|
7
4
|
const defineCommand_1 = require("../../core/defineCommand");
|
|
8
5
|
const rest_1 = require("@gitbeaker/rest");
|
|
@@ -10,74 +7,66 @@ const evaluateSecurityAudit_1 = require("../../security/evaluateSecurityAudit");
|
|
|
10
7
|
const createSecurityAuditMergeRequest_1 = require("../../security/createSecurityAuditMergeRequest");
|
|
11
8
|
const GITLAB_HOST = "https://git.panter.ch";
|
|
12
9
|
exports.commandSecurityAuditCiJob = (0, defineCommand_1.defineCommand)({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
name: "security audit ci-job",
|
|
11
|
+
description: "Evaluates security audit document. Creates MR with template if missing.",
|
|
12
|
+
group: "security",
|
|
13
|
+
inputs: {
|
|
14
|
+
path: { type: "string", message: "path to project root", positional: true },
|
|
15
|
+
token: {
|
|
16
|
+
type: "string",
|
|
17
|
+
message: "GitLab token (api scope)",
|
|
18
|
+
positional: true,
|
|
19
|
+
},
|
|
20
|
+
mainBranch: {
|
|
21
|
+
type: "string",
|
|
22
|
+
message: "main branch name",
|
|
23
|
+
positional: true,
|
|
24
|
+
},
|
|
25
|
+
projectId: {
|
|
26
|
+
type: "string",
|
|
27
|
+
message: "GitLab project ID",
|
|
28
|
+
positional: true,
|
|
29
|
+
},
|
|
30
|
+
userId: {
|
|
31
|
+
type: "string",
|
|
32
|
+
message: "GitLab user ID (assignee)",
|
|
33
|
+
positional: true,
|
|
34
|
+
},
|
|
26
35
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
36
|
+
execute: async (ctx) => {
|
|
37
|
+
const path = await ctx.get("path");
|
|
38
|
+
const evaluation = await (0, evaluateSecurityAudit_1.evaluateSecurityAudit)({ path });
|
|
39
|
+
if (evaluation.isErr()) {
|
|
40
|
+
ctx.log("could not evaluate security audit document");
|
|
41
|
+
ctx.log("creating new merge request with security audit template...");
|
|
42
|
+
const token = await ctx.get("token");
|
|
43
|
+
const mainBranch = await ctx.get("mainBranch");
|
|
44
|
+
const projectId = await ctx.get("projectId");
|
|
45
|
+
const userId = await ctx.get("userId");
|
|
46
|
+
const api = new rest_1.Gitlab({ host: GITLAB_HOST, token });
|
|
47
|
+
const mr = await (0, createSecurityAuditMergeRequest_1.createSecurityAuditMergeRequest)({
|
|
48
|
+
api,
|
|
49
|
+
mainBranch,
|
|
50
|
+
projectId,
|
|
51
|
+
userId: parseInt(userId),
|
|
52
|
+
});
|
|
53
|
+
if (mr.isErr()) {
|
|
54
|
+
ctx.log(`could not create merge request with security audit template: ${mr.error}`);
|
|
55
|
+
process.exitCode = 1;
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
ctx.log("security audit merge request created successfully");
|
|
59
|
+
ctx.log(`please finish the MR by updating SECURITY.md document: ${mr.value.web_url}`);
|
|
60
|
+
process.exitCode = 1;
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (evaluation.value.score.answeredTopics === 0) {
|
|
64
|
+
ctx.log("audit document has no answered topics");
|
|
65
|
+
ctx.log(`please answer security topics in ${createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME} by adding responsible people and check/cross in the table`);
|
|
66
|
+
process.exitCode = 1;
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
ctx.log((0, evaluateSecurityAudit_1.makeSecurityAuditOverview)(evaluation.value));
|
|
31
70
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
message: "GitLab project ID",
|
|
35
|
-
positional: true
|
|
36
|
-
},
|
|
37
|
-
userId: {
|
|
38
|
-
type: "string",
|
|
39
|
-
message: "GitLab user ID (assignee)",
|
|
40
|
-
positional: true
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
execute: async ctx => {
|
|
44
|
-
const path = await ctx.get("path");
|
|
45
|
-
const evaluation = await (0, evaluateSecurityAudit_1.evaluateSecurityAudit)({
|
|
46
|
-
path
|
|
47
|
-
});
|
|
48
|
-
if (evaluation.isErr()) {
|
|
49
|
-
ctx.log("could not evaluate security audit document");
|
|
50
|
-
ctx.log("creating new merge request with security audit template...");
|
|
51
|
-
const token = await ctx.get("token");
|
|
52
|
-
const mainBranch = await ctx.get("mainBranch");
|
|
53
|
-
const projectId = await ctx.get("projectId");
|
|
54
|
-
const userId = await ctx.get("userId");
|
|
55
|
-
const api = new rest_1.Gitlab({
|
|
56
|
-
host: GITLAB_HOST,
|
|
57
|
-
token
|
|
58
|
-
});
|
|
59
|
-
const mr = await (0, createSecurityAuditMergeRequest_1.createSecurityAuditMergeRequest)({
|
|
60
|
-
api,
|
|
61
|
-
mainBranch,
|
|
62
|
-
projectId,
|
|
63
|
-
userId: parseInt(userId)
|
|
64
|
-
});
|
|
65
|
-
if (mr.isErr()) {
|
|
66
|
-
ctx.log(`could not create merge request with security audit template: ${mr.error}`);
|
|
67
|
-
process.exitCode = 1;
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
ctx.log("security audit merge request created successfully");
|
|
71
|
-
ctx.log(`please finish the MR by updating SECURITY.md document: ${mr.value.web_url}`);
|
|
72
|
-
process.exitCode = 1;
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
if (evaluation.value.score.answeredTopics === 0) {
|
|
76
|
-
ctx.log("audit document has no answered topics");
|
|
77
|
-
ctx.log(`please answer security topics in ${createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME} by adding responsible people and check/cross in the table`);
|
|
78
|
-
process.exitCode = 1;
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
ctx.log((0, evaluateSecurityAudit_1.makeSecurityAuditOverview)(evaluation.value));
|
|
82
|
-
}
|
|
83
|
-
});
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=commandSecurityAuditCiJob.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export declare const commandSecurityAuditCreate: import("../../core").CommandDef<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}>;
|
|
2
|
+
readonly token: {
|
|
3
|
+
readonly type: "string";
|
|
4
|
+
readonly message: "GitLab token (api scope)";
|
|
5
|
+
readonly positional: true;
|
|
6
|
+
};
|
|
7
|
+
readonly mainBranch: {
|
|
8
|
+
readonly type: "string";
|
|
9
|
+
readonly message: "main branch name";
|
|
10
|
+
readonly positional: true;
|
|
11
|
+
};
|
|
12
|
+
readonly projectId: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly message: "GitLab project ID";
|
|
15
|
+
readonly positional: true;
|
|
16
|
+
};
|
|
17
|
+
readonly userId: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly message: "GitLab user ID (assignee)";
|
|
20
|
+
readonly positional: true;
|
|
21
|
+
};
|
|
22
|
+
}>;
|
|
@@ -1,60 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.commandSecurityAuditCreate = void 0;
|
|
7
4
|
const defineCommand_1 = require("../../core/defineCommand");
|
|
8
5
|
const rest_1 = require("@gitbeaker/rest");
|
|
9
6
|
const createSecurityAuditMergeRequest_1 = require("../../security/createSecurityAuditMergeRequest");
|
|
10
7
|
const GITLAB_HOST = "https://git.panter.ch";
|
|
11
8
|
exports.commandSecurityAuditCreate = (0, defineCommand_1.defineCommand)({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
name: "security audit create",
|
|
10
|
+
description: "Creates a MR with the latest security audit template document",
|
|
11
|
+
group: "security",
|
|
12
|
+
inputs: {
|
|
13
|
+
token: {
|
|
14
|
+
type: "string",
|
|
15
|
+
message: "GitLab token (api scope)",
|
|
16
|
+
positional: true,
|
|
17
|
+
},
|
|
18
|
+
mainBranch: {
|
|
19
|
+
type: "string",
|
|
20
|
+
message: "main branch name",
|
|
21
|
+
positional: true,
|
|
22
|
+
},
|
|
23
|
+
projectId: {
|
|
24
|
+
type: "string",
|
|
25
|
+
message: "GitLab project ID",
|
|
26
|
+
positional: true,
|
|
27
|
+
},
|
|
28
|
+
userId: {
|
|
29
|
+
type: "string",
|
|
30
|
+
message: "GitLab user ID (assignee)",
|
|
31
|
+
positional: true,
|
|
32
|
+
},
|
|
25
33
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
execute: async (ctx) => {
|
|
35
|
+
const token = await ctx.get("token");
|
|
36
|
+
const mainBranch = await ctx.get("mainBranch");
|
|
37
|
+
const projectId = await ctx.get("projectId");
|
|
38
|
+
const userId = await ctx.get("userId");
|
|
39
|
+
const api = new rest_1.Gitlab({ host: GITLAB_HOST, token });
|
|
40
|
+
const result = await (0, createSecurityAuditMergeRequest_1.createSecurityAuditMergeRequest)({
|
|
41
|
+
api,
|
|
42
|
+
mainBranch,
|
|
43
|
+
projectId,
|
|
44
|
+
userId: parseInt(userId),
|
|
45
|
+
});
|
|
46
|
+
if (result.isErr()) {
|
|
47
|
+
ctx.log(`could not create security audit merge request: ${result.error}`);
|
|
48
|
+
process.exitCode = 1;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
ctx.log("security audit merge request created successfully");
|
|
52
|
+
ctx.log(`please finish the MR by updating SECURITY.md document: ${result.value.web_url}`);
|
|
53
|
+
}
|
|
30
54
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
message: "GitLab user ID (assignee)",
|
|
34
|
-
positional: true
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
execute: async ctx => {
|
|
38
|
-
const token = await ctx.get("token");
|
|
39
|
-
const mainBranch = await ctx.get("mainBranch");
|
|
40
|
-
const projectId = await ctx.get("projectId");
|
|
41
|
-
const userId = await ctx.get("userId");
|
|
42
|
-
const api = new rest_1.Gitlab({
|
|
43
|
-
host: GITLAB_HOST,
|
|
44
|
-
token
|
|
45
|
-
});
|
|
46
|
-
const result = await (0, createSecurityAuditMergeRequest_1.createSecurityAuditMergeRequest)({
|
|
47
|
-
api,
|
|
48
|
-
mainBranch,
|
|
49
|
-
projectId,
|
|
50
|
-
userId: parseInt(userId)
|
|
51
|
-
});
|
|
52
|
-
if (result.isErr()) {
|
|
53
|
-
ctx.log(`could not create security audit merge request: ${result.error}`);
|
|
54
|
-
process.exitCode = 1;
|
|
55
|
-
} else {
|
|
56
|
-
ctx.log("security audit merge request created successfully");
|
|
57
|
-
ctx.log(`please finish the MR by updating SECURITY.md document: ${result.value.web_url}`);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
});
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=commandSecurityAuditCreate.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const commandSecurityAuditEvaluate: import("../../core").CommandDef<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}>;
|
|
2
|
+
readonly path: {
|
|
3
|
+
readonly type: "string";
|
|
4
|
+
readonly message: "path to project root";
|
|
5
|
+
readonly positional: true;
|
|
6
|
+
};
|
|
7
|
+
}>;
|
|
@@ -1,35 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.commandSecurityAuditEvaluate = void 0;
|
|
7
4
|
const defineCommand_1 = require("../../core/defineCommand");
|
|
8
5
|
const evaluateSecurityAudit_1 = require("../../security/evaluateSecurityAudit");
|
|
9
6
|
const createSecurityAuditMergeRequest_1 = require("../../security/createSecurityAuditMergeRequest");
|
|
10
7
|
exports.commandSecurityAuditEvaluate = (0, defineCommand_1.defineCommand)({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
ctx.log((0, evaluateSecurityAudit_1.makeSecurityAuditOverview)(result.value));
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
});
|
|
8
|
+
name: "security audit evaluate",
|
|
9
|
+
description: "Evaluates security audit document in given path",
|
|
10
|
+
group: "security",
|
|
11
|
+
inputs: {
|
|
12
|
+
path: { type: "string", message: "path to project root", positional: true },
|
|
13
|
+
},
|
|
14
|
+
execute: async (ctx) => {
|
|
15
|
+
const path = await ctx.get("path");
|
|
16
|
+
ctx.log("evaluating security audit document...");
|
|
17
|
+
const result = await (0, evaluateSecurityAudit_1.evaluateSecurityAudit)({ path });
|
|
18
|
+
if (result.isErr()) {
|
|
19
|
+
ctx.log(`${result.error}`);
|
|
20
|
+
ctx.log(`please make sure the security audit document ${createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME} is in the repository`);
|
|
21
|
+
process.exitCode = 1;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
ctx.log((0, evaluateSecurityAudit_1.makeSecurityAuditOverview)(result.value));
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=commandSecurityAuditEvaluate.js.map
|