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

facebookincubator / TTPForge / 35279365165
53%
main: 67%

Build:
Build:
LAST BUILD BRANCH: export-D120420789
DEFAULT BRANCH: main
Ran 17 Sep 2026 09:57PM UTC
Jobs 1
Files 88
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

17 Sep 2026 09:55PM UTC coverage: 52.622%. First build
35279365165

Pull #643

github

facebook-github-bot
Forward named environment variables to remote steps (#643)

Summary:

## Context

- Remote commands do not inherit the runner's environment. Callers need to explicitly forward selected values, such as run identifiers, to preserve execution context across SSH without editing each TTP.
- Preparing this change for public release also includes fixing the Go version mismatch exposed by GitHub CI. `go vet` failed on the existing `new("baz")` expression in `pkg/args/choices_test.go`, which requires Go 1.26, while the module selected Go 1.25.5. Updating Go and deriving the pre-commit version from `go.mod` are deliberate fixes for that public CI failure.

## This Diff

- Add repeatable `--forward-env NAME` and comma-separated `TTPFORGE_FORWARD_ENV` support for remote `inline:` and `file:` commands.
- Trim, merge, and deduplicate names from both sources. Require nonempty names to match `[A-Za-z_][A-Za-z0-9_]*`; fail the remote step before command dispatch on an invalid name, even if unset. Skip valid unset variables and preserve values that are set but empty.
- Preserve forwarded values literally, including `$forge.` references. Expand TTP-level and step-level `env` values and apply forwarded < TTP < step precedence.
- Document both forwarding forms, name validation, literal-value handling, and precedence in the remote execution guide and schema reference.
- Cover precedence, literal forwarding, and continued TTP/step expansion with 14 authenticated loopback SSH integration cases. Isolate helper tests from ambient forwarding settings.
- Add 24 invalid-name helper cases and 12 executor rejection cases covering both forwarding sources and POSIX, PowerShell, and cmd executor configurations. Verify no command reaches the backend on invalid input.
- Set the module minimum to Go 1.26.0 and select toolchain Go 1.26.5 to support the language features already used by the codebase.
- Have the GitHub pre-commit workflow read its Go version from `go.mod`, keeping public va... (continued)
Pull Request #643: Forward named environment variables to remote steps (#643)

36 of 37 new or added lines in 3 files covered. (97.3%)

3281 of 6235 relevant lines covered (52.62%)

15.23 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
61.25
pkg/blocks/executor.go
Jobs
ID Job ID Ran Files Coverage
1 35279365165.1 17 Sep 2026 09:57PM UTC 88
52.62
GitHub Action Run
Source Files on build 35279365165
  • Tree
  • List 88
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #643
  • 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