mirror of
https://github.com/actions/attest-build-provenance.git
synced 2025-12-16 12:19:04 +00:00
Update CODEOWNERS
This commit is contained in:
parent
877f50d98c
commit
c5d09398ea
36
CODEOWNERS
36
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
|
||||
<p>
|
||||
</
|
||||
[[[fttps-----aa<<dob4yc.ccco]]]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user