Define shared GitHub Actions security policy checks #6
Copy link
Copy link
Closed
Description
Goal
Define and enforce the shared GitHub Actions security baseline after the workflow distribution path was validated end to end.
Implemented policy
Mandatory rules:
- external Actions are pinned to a full 40-character commit SHA;
- human-readable version comments are kept next to pins when known;
-
actions/checkoutusespersist-credentials: false; -
permissions: write-allis forbidden; - workflows use explicit least-privilege permissions;
- exceptions must be documented and justified.
Enforcement
-
scripts/check_workflow_policy.pyprovides deterministic policy checks; -
tests/test_workflow_policy.pycovers accepted and rejected cases; -
.github/workflows/workflow-policy.ymlruns the policy in CI; - actionlint remains responsible for workflow correctness;
- zizmor remains responsible for broader GitHub Actions security analysis;
- exception and governance guidance is documented in
docs/security-policy.md.
Repository rulesets and required-check enforcement remain owned by LibreCodeCoop/github-governance.
Implemented in #60.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity