GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@updateclibot

@updateclibot updateclibot Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

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
## 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>
GitHub Action workflow link
Updatecli logo

Created automatically by Updatecli

Options:

Most of Updatecli configuration is done via its manifest(s).

  • If you close this pull request, Updatecli will automatically reopen it, the next time it runs.
  • If you close this pull request and delete the base branch, Updatecli will automatically recreate it, erasing all previous commits made.

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!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
updateclibot Bot added 2 commits October 1, 2026 12:18
@updateclibot
chore: deps(go): bump module github.com/jferrl/go-githubauth to v1.9.1
2dac8e5
Made with ❤️️ by updatecli
@updateclibot
chore: clean: go mod tidy
e21d484
Made with ❤️️ by updatecli
@updateclibot updateclibot Bot added the dependencies Pull requests that update a dependency file label Oct 1, 2026
@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f69ca1b3-e8b8-4b78-ab8c-06094a50d97d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olblak
Merge branch 'main' into updatecli_main_053b18884ba0838b4aa6b5c965153…
411a13e
…3ae5db18f5c4a2ffb68b2e3abf7e2b3f76b
olblak
olblak approved these changes Oct 3, 2026
View reviewed changes
@olblak
olblak enabled auto-merge (squash) October 3, 2026 05:46
@olblak
olblak merged commit 87d91c0 into main Oct 3, 2026
8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@olblak
olblak deleted the updatecli_main_053b18884ba0838b4aa6b5c9651533ae5db18f5c4a2ffb68b2e3abf7e2b3f76b branch October 3, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@olblak olblak olblak approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@olblak
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.