🔧 Fix octo-sts pull_request policy subject pattern#4310
Merged
thomas-lebeau merged 1 commit intomainfrom Mar 11, 2026
Merged
Conversation
GitLab CI changed the subject format from `refs/heads/main` to `ref_type:branch:ref:main`. Update the pull_request policy to match, aligning it with the format already used by the release policy.
BenoitZugmeyer
approved these changes
Mar 11, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Motivation
The
bump-chrome-versionCI job (and any other job usinggetGithubPullRequestToken()) has been failing for months due to a subject format change in GitLab CI. As a result, the Chrome version used in tests has been stuck at 139 for ~7 months.The error:
GitLab updated the default OIDC
subclaim format fromrefs/heads/maintoref_type:branch:ref:main(see GitLab OIDC docs).Changes
Update
.github/chainguard/self.gitlab.pull_request.sts.yamlto use the new subject format, aligning it with the format already used by thereleasepolicy.Checklist
Tested on stagingAdded unit tests for this change.Added e2e/integration tests for this change.Updated documentation and/or relevant AGENTS.md file