GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — deps(go): bump module github.com/jferrl/go-githubauth to v1.9.1 by updateclibot[bot] · Pull Request #10703 · updatecli/updatecli Conversation
Contributor
deps(go): bump module github.com/jferrl/go-githubauthclean: go mod tidyran shell command "go mod tidy" deps(go): bump module github.com/jferrl/go-githubauth to v1.9.1go.mod updated Module path "github.com/jferrl/go-githubauth" version from "v1.7.0" to "v1.9.1" v1.9.1## Changelog * 5500ebe3a9dfdca8572d6fccb60be4dc2f90496c fix: publish the Homebrew cask ## Installing the CLI Download the archive for your platform above, or: ```bash go install github.com/jferrl/go-githubauth/cmd/[email protected] ``` Verify a download against `checksums.txt`: ```bash sha256sum -c checksums.txt --ignore-missing ``` The library is unaffected by these artifacts: ```bash go get github.com/jferrl/[email protected] ``` v1.9.0## Changelog * 17a86eeeaff8c311f4c40e5bd968f865c6ac4717 feat: add a githubauth command line tool * 1240d11b08184cc6f605a56f70b9cb4ad36767ab feat: publish a Homebrew cask for the CLI * 0b56e29c33841506764f024a5032e00f01c7adab feat: publish prebuilt CLI binaries with GoReleaser ## Installing the CLI Download the archive for your platform above, or: ```bash go install github.com/jferrl/go-githubauth/cmd/[email protected] ``` Verify a download against `checksums.txt`: ```bash sha256sum -c checksums.txt --ignore-missing ``` The library is unaffected by these artifacts: ```bash go get github.com/jferrl/[email protected] ``` 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.0
v1.7.0## [v1.7.0] - 2026-06-30 GitHub Enterprise Cloud (GHEC) support and a more foolproof installation-token configuration. ### Added - **Custom Base URL**: New `WithBaseURL` option sets the API base URL verbatim (only normalizing a trailing slash), mirroring how `go-github` targets a custom endpoint. Unlike `WithEnterpriseURL`, it does not append `/api/v3/`, enabling GitHub Enterprise Cloud with data residency (`https://api.SUBDOMAIN.ghe.com/`) and pointing the client at an `httptest` server in tests (#50) ### Changed - **Order-independent options**: `WithBaseURL`, `WithEnterpriseURL`, `WithHTTPClient`, and `WithRetryOnThrottle` can now be combined in any order. Previously `WithHTTPClient` rebuilt the client and silently discarded a base URL or retry setting applied before it - **Fail-loud configuration**: An invalid base URL (or a `nil` HTTP client) is now reported by the first call to `Token()` instead of silently falling back to the public GitHub API ### Fixed - **HTTP client no longer mutated**: `WithHTTPClient` operates on a shallow copy, so the caller's `*http.Client` (which may be shared elsewhere) keeps its original transport - **No panic on nil client**: passing `nil` to `WithHTTPClient` now yields a clear error instead of panicking ### Maintenance - Removed the deprecated, no-op `net.Dialer.DualStack` field from the pooled HTTP client - Renamed the unexported `githubClient.client` field to `httpClient` for clarity ### Tests - Added coverage for `WithBaseURL` (GHEC and `httptest` URLs), option order-independence, fail-loud misconfiguration, and verification that the caller's HTTP client is not mutated ### Dependencies - Bumped `actions/cache` from 5 to 6 (#49) - Bumped `actions/checkout` from 6 to 7 (#48) - Bumped `codecov/codecov-action` from 6 to 7 (#46) **Full Changelog**: <https://github.com/jferrl/go-githubauth/compare/v1.6.0...v1.7.0>
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsMade with ❤️️ by updatecli Made with ❤️️ by updatecli
|
There was an error while loading. Please reload this page.
|
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…3ae5db18f5c4a2ffb68b2e3abf7e2b3f76b
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.