Repository navigation
Conversation
…enance Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
jhnns
force-pushed
the
fix/publish-provenance-jwt-base64url
branch
from
November 9, 2026 14:08
e26acce to
4317d9b
Compare
jhnns
marked this pull request as ready for review
November 9, 2026 14:09
This branch has not been deployed
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.
deno publishfails after uploading the package withInvalid symbol 45, offset N.when generating provenance in GitHub Actions. The package is published, but the command exits 1 and no provenance is recorded.Cause
extract_jwt_subjectdecodes the OIDC token payload withSTANDARD_NO_PAD, but JWT segments are base64url (RFC 7519). The two alphabets differ in+/vs.-_, so any token whose encoded payload contains-or_is rejected (45is-).This is triggered when the workflow
name:contains emoji: theworkflowclaim then contains UTF-8 bytes that base64url-encode to-(e.g.🚀→8J-agA). For a given workflow the claim offsets are essentially fixed, so such workflows fail on every run.Fix
Decode with
URL_SAFE_NO_PAD. Adds a unit test using a token whose payload contains-(workflow name🧪 Test and 🚀 Release).References
Test and Releaseworkflow, deno 2.6.7,Invalid symbol 45, offset 1174.)🤖 Disclosure: this PR (the code change, test and description) was generated with Claude Code and reviewed by a human before submission.