DashboardpublishAlways enforce trusted-code boundaries …

Always enforce trusted-code boundaries for privileged workflows

Category: preference
Confidence: 0.80
ID: 01a08680-122b-7797-9140-5eaec30928a1
Project ID: ac098440-8723-4582-9021-39e07a608100
Cross-project: No
Recalled in other projects: 0
Source session: 1BpBuVO0t33JPd6VY
Created: 2026-09-09 14:08:55
Updated: 2026-09-09 14:08:55

Content

For GitHub Actions that use secrets, write permissions, approvals, or release state, ensure only trusted default-branch code executes. Pin third-party actions to immutable commit SHAs, place secret-bearing jobs behind the protected production environment, and never expose repository secrets to workflows dispatchable from arbitrary refs. Use an unprivileged relay for manual dispatch, require successful default-branch execution before privileged processing, and revalidate approval state immediately before transitions such as ci-ready. Add regression tests for these workflow invariants, then run the full test suite and lint checks after changes.

Move to: