• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

go-pkgz / auth / 32760245443
86%
master: 87%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v2.3.0
DEFAULT BRANCH: master
Ran 25 Aug 2026 05:57AM UTC
Jobs 1
Files 25
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Aug 2026 06:02PM UTC coverage: 86.217% (+0.2%) from 86.05%
32760245443

Pull #311

github

ChrisJr404
make github enterprise a checked constructor and keep the build cache out of history

Reconstructs the branch tip on d7560b54 without the .gocache and .gomodcache
trees that slipped into 61b2835 (about 10.7k files, ~400MB), and adds both to
.gitignore so they cannot come back. The scheme-less URL handling and the README
app-registration note from that commit are kept.

Reworks the enterprise support from the review:

An invalid base URL is now a registration error instead of a silent fallback to
public github.com. NewGithubEnterprise(p, baseURL) (Oauth2Handler, error) and an
error-returning AddGithubEnterpriseProvider replace the GithubEnterpriseURL field
on Params, so a mistyped URL fails at startup rather than quietly authenticating
people against the wrong server. The constructor takes Params, so the
UserAttributes and GithubNumericID combination needs no hand-built struct.

Seeds both id inputs with the instance authority, ghes:<realm>:login:<login> and
ghes:<realm>:gid:<id>, where the realm is the lowercase host plus any non-default
port. Public github.com ids stay byte-for-byte. Enterprise logins no longer
collide with their github.com namesakes, and http and https on one host resolve
to the same id. With no usable numeric id the enterprise-seeded login is kept,
not the public one.

Tightens the URL guard so a bare https://, a URL already carrying /api/v3, and a
trailing ? are all rejected: parse once, then build the root from scheme and host
instead of trusting u.String(). The invalid-url error carries none of the input,
and the one WARN that still names a URL goes through redirectHostForLog so a
credential-bearing value cannot leak.

Mirrored across the v1 and v2 modules.
Pull Request #311: Add GitHub Enterprise Server support to the github provider

75 of 81 new or added lines in 2 files covered. (92.59%)

3284 of 3809 relevant lines covered (86.22%)

9.75 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
88.33
v2/provider/providers.go
Jobs
ID Job ID Ran Files Coverage
1 32760245443.1 25 Aug 2026 05:57AM UTC 25
86.22
GitHub Action Run
Source Files on build 32760245443
  • Tree
  • List 25
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #311
  • PR Base - master (#32226875382)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc