Repository navigation
Add OctoSTS org trust policy for SEP tech debt project sync - #20
Merged
Merged
Conversation
Missing Issue LinkThis PR does not appear to reference a GitHub issue. |
Nashon-Steffen
approved these changes
Oct 23, 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.
Summary
.github/chainguard/sep-tech-debt-sync.sts.yaml, an org-level OctoSTS trust policy for SEP's tech debt project sync.SEP is adding a Tech debt issue form. Issue forms can't set project custom fields, so a workflow (
bot-tech-debt-project-sync.yml) copies the form's ratings into the Debt fields on Stacklok project 74.GITHUB_TOKENcan't write org projects, so the workflow exchanges its Actions OIDC token here for astacklok-octoststoken instead of using a stored GitHub App key. This follows SEP's existingpublish-docs-references.ymlsetup.The policy accepts exactly one caller. That caller must:
repo:stacklok/stacklok-enterprise-platform:ref:refs/heads/mainbot-tech-debt-project-sync.yml@refs/heads/mainThe token carries
organization_projects: writeplusissues: readonstacklok-enterprise-platform.The SEP side is stacklok/stacklok-enterprise-platform#5584, "feat(github): add tech debt issue form and project field sync".
Prerequisites (org admin)
stacklok-octostsonstacklok-enterprise-platform, if it isn't already installed. GitHub rejects the token request if the policy lists a repo outside the installation.Security note
organization_projects: writecan't be narrowed to a single project, so the minted token can write any org project. The workflow only writes project 74, and the policy limits minting to that one workflow file on SEP'smain. Changing that workflow needs a reviewed PR to SEP'smain. A dedicated GitHub App would carry the same org-wide project scope.Validation
1173448377) and owner ID (110237746) were checked against the GitHub API, and they match SEP's existingsep-docs-prpolicy in docs-website.stacklok-octostsapp's permissions includeorganization_projects: writeandissues: write, so both requested permissions are within its grant.🤖 Generated with Claude Code