• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / github-oauth-proxy / 25966251041
64%

Build:
DEFAULT BRANCH: main
Ran 16 May 2026 03:54PM UTC
Jobs 1
Files 7
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

16 May 2026 03:53PM UTC coverage: 64.364% (+5.0%) from 59.322%
25966251041

push

github

web-flow
refactor: port to golang (#144)

* refactor: port to golang

* fix: resolve linting issues regarding unused errors

- Ignore returned error from `healthcheck.New` as it is not needed.
- Assert `json.Unmarshal` error in `TestServer` to improve test
  reliability.
- Properly handle `resp.Body.Close()` error in `ExchangeToken` to
  satisfy linter requirements.

* chore: remove arm64 support from build workflow

* Removed QEMU setup action.
* Restricted build platform to `linux/amd64` to simplify CI and reduce
  build times.

* feat: add custom request logger middleware

- Replace default gin logger with a custom `zerolog` middleware.
- Improve log readability by using `time.RFC3339` timestamps.
- Add support for excluding specific paths (e.g., `/healthz`,
`/metrics`)
  to reduce log noise.
- Update `.gitignore` to ignore temporary debug binaries.

* Update internal/github/client.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* feat: improve github client robustness and logging

- Add error handling for non-200 responses in `ExchangeToken`.
- Set `User-Agent` for GitHub API requests.
- Use `zerolog.Ctx` in middleware for contextual logging.
- Add unit tests for `ExchangeToken` and `Logger` middleware.

```mermaid
sequenceDiagram
    participant C as Client
    participant GH as GitHub API
    C->>GH: POST /login/oauth/access_token
    alt 200 OK
        GH-->>C: Token Response
    else 4xx/5xx Error
        GH-->>C: Error JSON/Status
        C-->>C: Handle/Wrap Error
    end
```

* test: add unit tests for configuration loading

Adds comprehensive test coverage for `Load()` in the `config` package to
ensure correct handling of environment variables, specifically:
* Validation of required environment variables.
* Proper parsing of `GITHUB_OAUTH_SECRET_*` keys.
* Error handling for malformed input or missing requirements.

* refactor: simplify IsOriginAllowed using slices

Replace manual loop with `... (continued)

177 of 275 new or added lines in 7 files covered. (64.36%)

177 of 275 relevant lines covered (64.36%)

0.7 hits per line

Uncovered Changes

Lines Coverage ∆ File
53
0.0
cmd/root.go
20
70.59
internal/api/handlers.go
16
60.0
internal/github/client.go
4
88.24
internal/api/server.go
3
0.0
main.go
2
92.31
internal/middleware/logger.go
Jobs
ID Job ID Ran Files Coverage
1 25966251041.1 16 May 2026 03:54PM UTC 7
64.36
GitHub Action Run
Source Files on build 25966251041
  • Tree
  • List 7
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6b90a6fd on github
  • Prev Build on main (#25915893772)
  • Next Build on main (#26126868586)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc