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

IJHack / QtPass / 46042814872
95%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2026 05:44PM UTC
Jobs 1
Files 87
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

27 Nov 2026 05:33PM UTC coverage: 94.712% (-0.1%) from 94.848%
46042814872

push

github

web-flow
Git: refuse a pushed bare repository, pin the store's attributes (#2363)

Two ways someone who can push to a shared store could make Git act on
content they pushed, both reaching the Git that pass runs too.

A folder laid out as a bare repository, with a config that names a
command (core.fsmonitor): Git started there read the config and ran the
command when an entry was saved. Util::requireExplicitBareRepository()
sets safe.bareRepository=explicit (Git 2.38+) through GIT_CONFIG_*,
command-line scope, which a repository's config cannot override. It is
appended at the next free index, keeps the user's own entries, overrides
a weaker earlier value (the last entry wins), restarts a malformed
GIT_CONFIG_COUNT, and when GIT_CONFIG_PARAMETERS names the key, makes a
separate 'safe.bareRepository=explicit' token its last entry. Both
Pass::updateEnv() and profile setup (whose identity check runs before
git init) use it, and the entries go into WSLENV for `wsl pass`.

A pushed .gitattributes (`*.gpg text`) made Git rewrite the ciphertext
on commit or checkout. pinStoreGitAttributes() writes byte-for-byte
overrides for *.gpg, .gpg-id and .gpg-id.sig into the store's
.git/info/attributes, which outranks the pushed file, also right after
git init. diff is left alone, so pass's `*.gpg diff=gpg` keeps working.
An unreadable info/attributes is not overwritten, and a failed pin is
logged.

Integration tests plant a bare repository (with a control run proving
the command runs without the guard) and check the pin wins for text,
keeps diff=gpg, and lands after git init; tst_util covers the guard's
cases and the WSLENV entries. Each fails without its change.

Scan findings ANT-2026-HJOPH9D4 and ANT-2026-JWPWADT4.

Signed-off-by: Anne Jan Brouwer <brouwer@annejan.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

69 of 89 new or added lines in 3 files covered. (77.53%)

10298 of 10873 relevant lines covered (94.71%)

25650.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
20
96.04
-2.73% src/pass.cpp
Jobs
ID Job ID Ran Files Coverage
1 46042814872.1 27 Nov 2026 05:44PM UTC 87
94.71
GitHub Action Run
Source Files on build 46042814872
  • Tree
  • List 87
  • Changed 5
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46042814872
  • 70423c33 on github
  • Prev Build on main (#46027773454)
  • Next Build on main (#46046065906)
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