Skip to content

Security

How this monorepo isolates administrative and publishing credentials from package contributors.

The full reference covering the threat model, privilege boundaries, cross-forge guarantees, and setup steps lives in the workshop guide: Security and secret isolation.

How this repository isolates credentials

livery self-hosts livery-workshop, so its CI uses the same isolation model as every consumer repository:

  • Tier 1 (isolated privileged): FORGE_ADMIN_TOKEN (in the protected govern environment) and PYPI_TOKEN / OIDC (in the protected pypi environment) run inside isolated python3 -I jobs that install only livery-workshop and its transitive workspace dependencies from uv.lock. They never run setup.sh, never load tasks.py, never fold .repo.env, and never install other packages under packages/*/.
  • Tier 2 (trusted-branch workspace): FORGE_TOKEN (in the protected bot environment for nightly.yml) is protected from unmerged pull requests, not from code merged into packages/*/. Any contributor who can merge package code can read Tier 2 credentials.
  • Tier 3 (PR-reachable / repo-scoped): Disallowed. Root .repo.env maps to non-secret vars.* in CI, and fm security.check flags any repository-level secret on GitHub or PR-wired secret as a failure.

Root [owners] in workshop.toml guards every workflow file, lockfile, root script, .repo.env, and every member of livery-workshop's transitive workspace dependency closure in .github/CODEOWNERS.

Verifying the repository

Run fm security.check (or fm doctor) to verify CODEOWNERS coverage, workflow isolation, branch protection, protected environments, and secret placement. Place credentials into their protected environments with fm workflow.secret.set <NAME>.