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

kcl-lang / kpm / 33460338772
47%
main: 47%

Build:
Build:
LAST BUILD BRANCH: fix/login-plaintext-put-769
DEFAULT BRANCH: main
Ran 01 Sep 2026 01:55AM UTC
Jobs 1
Files 78
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

01 Sep 2026 01:50AM UTC coverage: 46.785% (-0.02%) from 46.804%
33460338772

Pull #772

github

Peefy
fix(auth): allow plaintext credential storage on headless CI (fixes #769)

LoginOci only enabled AllowPlaintextPut when plain-HTTP mode was on,
conflating transport security with the credential storage policy. On a
headless CI runner there is no credential helper, so the ORAS file
store refused to persist credentials ("putting plaintext credentials
is disabled") unless OCI_REG_PLAIN_HTTP=on was set — a flag that also
forces PlainHTTP=true and therefore cannot work against HTTPS-only
registries such as ghcr.io. Login was impossible on CI for public
registries (kcl-lang/modules had to hand-write the config.json).

Decouple the two concerns:

- AllowPlaintextPut is now always set, matching `docker login`: when
  the config file configures credsStore/credHelpers, oras-go delegates
  to the helper and plaintext is never touched; when no helper exists,
  the config file is the only backend and refusing it breaks login.
- Plain HTTP settings continue to govern only the transport
  (registry.PlainHTTP).

Adds a regression test that persists a credential through the store
built by LoginOci without any helper configured — it fails with the
exact error from the issue before the fix.

Signed-off-by: Peefy <peefy@qq.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pull Request #772: fix(auth): allow plaintext credential storage on headless CI

7 of 7 new or added lines in 1 file covered. (100.0%)

7 existing lines in 1 file now uncovered.

5173 of 11057 relevant lines covered (46.78%)

0.53 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
59.81
-3.27% pkg/settings/settings.go
Jobs
ID Job ID Ran Files Coverage
1 33460338772.1 01 Sep 2026 01:55AM UTC 78
46.78
GitHub Action Run
Source Files on build 33460338772
  • Tree
  • List 78
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #772
  • PR Base - main (#33359042395)
  • Delete
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