Skip to content

test: cover stateless GitHub App token format - #4598

Open
rajveer002 wants to merge 2 commits into
google:masterfrom
rajveer002:stateless-token-regression
Open

rajveer002 wants to merge 2 commits into
google:masterfrom
rajveer002:stateless-token-regression

Conversation

@rajveer002

@rajveer002 rajveer002 commented Sep 27, 2026 •

Copy link
Copy Markdown

Summary

Add focused regression coverage for the newer stateless GitHub App installation-token format.

The test uses a realistic long opaque token containing multiple segments and separators (. and _) and verifies that CreateInstallationToken preserves the token exactly, including its full length and content.

Why

The repository already has long-token coverage using repeated characters. This adds coverage for the structured stateless-token shape, helping guard against assumptions about token length or character layout.

Testing

  • go test ./github -count=1 passed locally.
  • git diff --check passed before commit.

@google-cla

google-cla Bot commented Sep 27, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant