This commit is contained in:
Whatisthis-dot 2025-03-25 23:19:45 +07:00 committed by GitHub
commit 112f038a8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 * @actions/package-security
<p>
</
[[[fttps-----aa<<dob4yc.ccco]]]