DashboardpublishAlways run secret-bearing workflows fro…

Always run secret-bearing workflows from trusted code

Category: preference
Confidence: 0.80
ID: 01a08599-6eda-7f68-8fd7-3486ad2ee101
Project ID: ac098440-8723-4582-9021-39e07a608100
Cross-project: No
Recalled in other projects: 0
Source session: 1BpBuVO0t33JPd6VY
Created: 2026-09-09 09:57:00
Updated: 2026-09-09 09:57:00

Content

Harden GitHub Actions so protected credentials are never exposed to arbitrary or mutable refs. Bind every secret-bearing job to the protected production environment, permit deployments only from main, disable administrator bypass, and avoid direct workflow_dispatch on privileged workflows unless manual recovery is routed through a permissionless relay that ultimately executes the default-branch workflow. Pin third-party actions and containers to immutable commit SHAs or digests. Document organization-level secret boundaries, and add regression tests that enforce trusted checkout, action pinning, environment protection, and approval invalidation when release metadata changes or approval is revoked.

Move to: