Skip to content
Latchkey LogoLatchkey home

Latchkey Learn

CI security for GitHub Actions

How GitHub Actions workflows get attacked and the settings that stop it: pinned actions, least-privilege tokens, OIDC and untrusted input.

Start here four stops, in order

  1. 01GitHub Actions cache poisoningSupply chain
  2. 02GITHUB_TOKEN permissionsTokens and credentials
  3. 03Script injection in run: stepsUntrusted input
  4. 04GitHub Actions permissions builderTools

Contents 4 sections · 9 entries

Tokens and credentials 2 entries

GITHUB_TOKEN permissions, OIDC.

  1. 2.1GITHUB_TOKEN permissions
  2. 2.2OIDC cloud credentials, done tightly

Untrusted input 3 entries

pull_request_target, script and prompt injection.

  1. 3.1Script injection in run: steps
  2. 3.2Prompt injection in CI agents
  3. 3.3pull_request_target and pwn requests

Tools 1 entry

Free tools that run in your browser.

  1. 4.1GitHub Actions permissions builder
Explore other topics