View as Markdown
Test Engine

OIDC trust policies grant more than CI Reporting

An OIDC trust policy can now give the GitHub Actions jobs it matches more than CI Reporting, such as pausing the merge queue, so those workflows need no stored application key.

A GitHub Actions job that authenticates with OIDC used to reach CI Reporting only. A deploy workflow that also pauses the merge queue, or a job that quarantines a test, still needed an application key stored as a secret, which reaches every repository of the organization until someone deletes it. A trust policy now has permissions, the same ones an application key has, with CI Reporting first. A job’s token gets what the policies matching it grant, on its own repository only, and still expires within the hour. The exchange report shows what each job got.

  • Every existing policy keeps granting CI Reporting alone.
  • Only an organization admin can grant a policy more than CI Reporting. CI Admins and application keys keep writing the ones granting CI Reporting.
  • Anyone who can push a branch can edit a workflow file: keep a policy that grants more to protected environments, or to a reusable workflow at a protected ref. Set it from Settings › CI Authentication or through the API. There is nothing to turn on.

Was this page helpful?