Repository navigation
Conversation
Made with ❤️️ by updatecli
Made with ❤️️ by updatecli
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…3ae5db18f5c4a2ffb68b2e3abf7e2b3f76b
olblak
approved these changes
Oct 3, 2026
olblak
enabled auto-merge (squash)
October 3, 2026 05:46
olblak
deleted the
updatecli_main_053b18884ba0838b4aa6b5c9651533ae5db18f5c4a2ffb68b2e3abf7e2b3f76b
branch
October 3, 2026 06:19
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.
deps(go): bump module github.com/jferrl/go-githubauth
clean: go mod tidy
ran shell command "go mod tidy"
deps(go): bump module github.com/jferrl/go-githubauth to v1.9.1
go.mod updated Module path "github.com/jferrl/go-githubauth" version from "v1.7.0" to "v1.9.1"
v1.9.1
v1.9.0
v1.8.0
## [v1.8.0] - 2026-09-18 A correctness release. Two changes alter behaviour callers may depend on; both are listed under Changed and are worth reading before upgrading. ### Added - `RateLimitError{StatusCode, RetryAfter, Message}`, the concrete error returned when GitHub throttles a request. It carries the wait the client computed from GitHub's own headers, so a caller running its own backoff no longer has to re-parse a response it never sees. Extract it with `errors.As`; it unwraps to `ErrRateLimited`, so `errors.Is` and the rendered error string are unchanged (#65) ### Changed - **A 403 is no longer treated as rate limiting just because it carries rate-limit headers.** GitHub attaches `X-RateLimit-*` to essentially every authenticated response, so a terminal `Resource not accessible by integration` was slept on for up to 60s, retried, and returned wrapped in `ErrRateLimited`. A 403 now counts as throttled only when it carries `Retry-After`, reports an exhausted budget, or says so in its message. Callers branching on `errors.Is(err, ErrRateLimited)` will no longer match a permission failure (#63) - **`WithApplicationTokenExpiration` rejects values at or below 90 seconds**, the 60s clock-drift backdate plus `DefaultExpirySkew`, falling back to the 10 minute default. Below that bound the cache can never hold the token and every call re-signs. The README previously documented `1 * time.Minute`, which is affected (#63) - `WithHTTPClient` reuses the application JWT across requests, matching the default transport, instead of re-signing on every installation-token request (#62) ### Security - **An empty webhook secret is refused instead of used as an HMAC key.** HMAC accepts a zero-length key, so a deployment that called `Middleware(nil)` or read a missing secret from the environment verified every delivery against a key anyone can reproduce, and forged payloads reached the downstream handler as authentic. `Verify` now returns the new `ErrMissingSecret`, so a misconfigured deployment fails closed (#61) ### Fixed - Named identifier types are accepted. The `Identifier` constraint is `~int64 | ~string`, but the implementation type-switched on the exact dynamic type, so `type AppID int64` was rejected with `unsupported identifier type` (#63) - A short application token expiration no longer mints an already-dead JWT. Issuance is backdated 60s for clock drift and only the upper bound was clamped, so a 30 second expiration produced a token that had expired 30 seconds earlier (#63) - A non-positive installation ID fails as a configuration error before any network call, rather than as a 404 from GitHub (#62) - The wait for a response header is bounded. Dial, TLS handshake and idle connections were capped, but a server that accepted a connection and then stalled hung `Token()` indefinitely, holding the token cache mutex against every concurrent caller (#61) - The error body of a failed response is capped at 64 KiB (#63) - Three comments claimed a default application JWT is usable for 9m30s; the backdating makes it 8m30s (#63) - `ErrRateLimited` and `WithRetryOnThrottle` godoc now describe the 403 contract they actually implement (#63) - Examples check the error from `resp.Body.Close` (#54) ### Documentation - Added godoc examples, package documentation, `llms.txt`, and a comparison with `ghinstallation` (#54) - README reduced from 587 to 148 lines (#54) - **GitHub stateless installation tokens: no action required.** GitHub is replacing the short opaque installation token with a `ghs_`-prefixed JWT of about 520 characters ([announcement](https://github.blog/changelog/2026-05-15-github-app-installation-tokens-per-request-override-header/)). This library copies the token string into `oauth2.Token.AccessToken` and never parses, measures or validates it, and expiry is read from `expires_at`, so both formats work unchanged. GitHub Enterprise Server is out of scope; Enterprise Cloud and Data Residency endpoints are in scope, as is the Actions `GITHUB_TOKEN` ### Tests - Both installation token formats, stateless and classic opaque, are pinned for verbatim passthrough - Every reachable branch is covered, and a test that reached `example.com` over the network on each CI run was replaced with ones that exercise what their names claim (#66) ### Internal - Dropped two branches no input can reach, and replaced a relative-reference endpoint resolution with `url.URL.JoinPath`, which cannot fail and preserves an Enterprise `/api/v3/` prefix by construction (#66) ### Dependencies - Moved to the Go 1.26 toolchain - Bumped `golang.org/x/oauth2` from 0.36.0 to 0.37.0 (#59) - Bumped `github/codeql-action` from 4 to 4.38.0 (#53, #55, #56, #57, #58, #60) - Bumped `actions/setup-go` from 6 to 7 (#52) **Full Changelog**: https://github.com/jferrl/go-githubauth/compare/v1.7.0...v1.8.0v1.7.0
Created automatically by Updatecli
Options:
Most of Updatecli configuration is done via its manifest(s).
Feel free to report any issues at github.com/updatecli/updatecli.
If you find this tool useful, do not hesitate to star our GitHub repository as a sign of appreciation, and/or to tell us directly on our chat!