v0.3.0: GitHub Actions as a second issuer
Bundles can now be fetched from GitHub Actions as well as Amp orbs. A policy with
issuer: "github-actions" must pin all six of:
- the repository and its owner, by immutable ID, so a renamed or re-registered repository doesn’t match;
- the branch (
ref) and the GitHub environment the job uses; - the calling workflow file (
workflow_ref), so another workflow in the same repository can’t use the bundle; - the event,
pushorworkflow_dispatch. Pull request events can never match.
Jobs in reusable workflows are refused before any policy runs, and a token from one issuer never matches another issuer’s policy. GitHub tokens get the same checks as Amp’s: RS256 only, the deployment’s audience, at most a one-hour lifetime and single use.
broker-run uses the job’s OIDC token whenever the job has permissions: id-token: write, and an
Amp token otherwise. Portona can’t see your GitHub settings, so protect the pinned branch and give
id-token: write only to the job that needs the secrets. Policies and
Using a bundle have the details and an example workflow.
Upgrading needs no change: existing Amp policies and replay records keep working, and a Worker rolled back to v0.2.3 still refuses a replayed Amp token.