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

umputun / spot / 15260566771
84%

Build:
DEFAULT BRANCH: master
Ran 26 May 2025 07:12PM UTC
Jobs 1
Files 19
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

26 May 2025 07:09PM UTC coverage: 84.341% (+0.07%) from 84.267%
15260566771

push

github

umputun
Fix preservation of single-quoted environment variables

This change addresses issue #285 where bcrypt passwords and other values
containing dollar signs were being corrupted when passed between commands
via environment variables.

The root cause was that when variables were exported with single quotes
(to prevent shell expansion), this intent was lost when the templater
substituted the values in subsequent commands.

Changes:
- Add exportKeyWithQuote method to detect single-quoted exports
- Mark single-quoted variables with :SQ suffix in setvar output
- Store single-quoted values with __SQ__: prefix internally
- Escape dollar signs during template substitution for SQ-marked values
- Update tests to handle new setvar format
- Add unit tests for templater handling of single-quoted values
- Update documentation to show correct single-quote approach

The fix ensures that when users export variables with single quotes like:
  export BCRYPT_PASSWORD='$2a$14$G.j2F3fm9wluTougUU52sOzePOvvpujjRrCoVp5qWVZ6qRJh58ISC'

The literal value is preserved throughout the variable lifecycle, preventing
shell expansion of special characters.

Also includes minor formatting fix in pkg/executor/remote.go.

53 of 53 new or added lines in 3 files covered. (100.0%)

6 existing lines in 1 file now uncovered.

2860 of 3391 relevant lines covered (84.34%)

53.79 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
6
93.49
-0.17% pkg/config/command.go
Jobs
ID Job ID Ran Files Coverage
1 15260566771.1 26 May 2025 07:12PM UTC 19
84.34
GitHub Action Run
Source Files on build 15260566771
  • Tree
  • List 19
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 12d1eea0 on github
  • Prev Build on master (#15243400127)
  • Next Build on master (#15685960518)
  • 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

© 2025 Coveralls, Inc