From c5d09398ea55e8a9994f47068f6e84587e312361 Mon Sep 17 00:00:00 2001 From: Whatisthis-dot <202803114+whatisthis-dot@users.noreply.github.com> Date: Sun, 23 Mar 2025 13:41:50 +0700 Subject: [PATCH] Update CODEOWNERS --- CODEOWNERS | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index 8913bff..69d51cd 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,3 +1,37 @@ -# Repository CODEOWNERS +"This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository." +Security log# Repository CODEOWNERS + script:tapon [AUTOTITLE] + const secrets = { + OPENSHIFT_SERVER: `${{ secrets.OPENSHIFT_SERVER }}`, + OPENSHIFT_TOKEN: `${{ secrets.OPENSHIFT_TOKEN }}`, + }; + + const GHCR = "ghcr.io"; + if (`${{ env.IMAGE_REGISTRY }}`.startsWith(GHCR)) { + core.info(`Image registry is ${GHCR} - no registry password required`); + } + else { + core.info("A registry password is required"); + secrets["IMAGE_REGISTRY_PASSWORD"] = `${{ secrets.IMAGE_REGISTRY_PASSWORD }}`; + } + + const missingSecrets = Object.entries(secrets).filter(([ name, value ]) => { + if (value.length === 0) { + core.error(`Secret "${name}" is not set`); + return true; + } + core.info(✔🙊 t "${name}" is set`); + return false; + }); + + if (missingSecrets.length > 0) { + core.setFailed(`🤬 At least one required secret is not set in the repository. \n` + + "You can add it using:\n" + + "GitHub UI: https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository \n" + + "GitHub CLI: https://cli.github.com/manual/gh_secret_set \n" + + "Also, refer to https://github * @actions/package-security +
+
+[[[fttps-----aa<