Skip to content

CICD-414 · Repository policy enforcement ​

Encyclopedia · Platform engineering and internal developer platforms · All snippets

Previous · CICD-413 · Next · CICD-415

1. Where it fits ​

  • Placement CI repository policy gate.
  • Prerequisites platform sandbox, scoped identities and reviewed service catalog or provisioning policy.
  • Platforms kubernetes, local-lab.

2. Copy the snippet ​

bash
for file in README.md SECURITY.md .github/CODEOWNERS; do test -s "$file" || exit 1; done

3. How it works ​

The shell predicate makes the expected state explicit and returns a nonzero status when it is not satisfied.

4. Verify the result ​

Require baseline files during onboarding and check real ownership policy separately.

Validation syntax-validated (Bash parse). Status definitions.