Interview Prep/GitHub Actions/Security Hardening & Supply Chain

Management wants all actions to come only from GitHub, verified creators, and an internal list. How do you implement it?

BeginnerScenarioSecurity Hardening & Supply Chain
Answer

Situation read → Org policy.

What I'd do →

  1. Org Settings, Actions, Policies: "Allow devopsshack, and select non-devopsshack, actions and reusable workflows", tick "Allow actions created by GitHub" and "Allow Marketplace actions by verified creators", add patterns like aquasecurity/trivy-action@*.
  2. Enable "Require actions to be pinned to a full-length commit SHA" where available.
  3. Document the request process for adding new actions.

Why → Explicit allow-listing turns the supply chain into a reviewed inventory.

Interview tip → Mention a request process; otherwise teams copy action code into repos to bypass.

All GitHub Actions questions Roadmap: GitHub Actions

More on Security Hardening & Supply Chain