ci: replace GH_AUTH_TOKEN PAT with Octo STS federation in baseline scanner - #195
Merged
Conversation
Member
Author
|
Have asked in the openssf-operations channel in the OSSF slack to have the octo-sts app installed (to just this repo for now if needed). Awaiting response. |
jmeridth
marked this pull request as ready for review
August 18, 2026 23:00
jmeridth
marked this pull request as draft
August 18, 2026 23:00
jmeridth
marked this pull request as ready for review
August 27, 2026 06:10
…anner What/Why The OSPS Baseline Scanner has now broken twice on PAT availability (PVTR_GITHUB_TOKEN expiry, then GH_AUTH_TOKEN not reaching this repo). Octo STS federation exchanges the workflow's OIDC identity for a short-lived GitHub App token minted against an in-repo trust policy, so there is no long-lived secret left to expire, rotate, or leak. Unlike the workflow GITHUB_TOKEN stopgap (ossf#194), the federated token carries administration read access, keeping branch protection checks observable. Mirrors gemaraproj/go-gemara#116. Proof it works Structural verification: actionlint passes. The Octo STS App is installed on the ossf org; the end-to-end test is a workflow_dispatch run from main after merge, since the trust policy subject only matches refs/heads/main. Risk + AI role Low -- scheduled scan workflow and a new trust policy file only. AI- generated (Claude Fable 5), mirroring the reviewed go-gemara change. Review focus Trust policy permission set, derived from the scanner's actual API calls. May need adjusting after a live run. Signed-off-by: jmeridth <jmeridth@gmail.com>
jmeridth
force-pushed
the
baseline-octo-sts
branch
from
August 27, 2026 13:19
0373c29 to
0afa7c2
Compare
eddie-knight
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relates to #162
What/Why
The OSPS Baseline Scanner has broken twice on PAT (Personal Access Token) availability:
PVTR_GITHUB_TOKENexpired (#162), and nowGH_AUTH_TOKENis not available to this repo (see #194 for the diagnosis). This swaps the PAT for Octo STS federation: the workflow exchanges its OIDC identity for a short-lived GitHub App token minted against a trust policy checked into this repo, so there is no long-lived secret left to expire, rotate, or leak. Unlike the workflowGITHUB_TOKEN(#194), the federated token carriesadministration: read, so the OSPS-AC-03 branch protection checks remain fully observable. Mirrors gemaraproj/go-gemara#116.Proof it works
Structural verification: actionlint passes and the trust policy follows the Octo STS TrustPolicy schema (same shape as the go-gemara policy). The Octo STS App is now installed on the
ossforg, so the remaining end-to-end test is aworkflow_dispatchrun frommainafter merge (the trust policy subject only matchesrefs/heads/main).Risk + AI role
Low. Scheduled scan workflow and a new trust policy file only. AI-generated, mirroring the go-gemara change.
Review focus
.github/chainguard/baseline-scanner.sts.yaml), derived from the scanner's actual API calls. May need adjusting after a live run.ossf/.githubinstead.