Repository navigation
Add hidden decode-base64 agent command for Windows local backend - #7023
Merged
Merged
Conversation
6543
approved these changes
Aug 17, 2026
6543
left a comment
Member
There was a problem hiding this comment.
lgtm from my side ... but i could be biased ...
Member
|
@qwerty287 I had discussions internally where i am employed and this was the best solution for the cmd problems ... ... but i want to get the bias and potential interest conflict away just look at it |
6543
reviewed
Aug 17, 2026
Contributor
|
I don't use windows at all... |
Local Windows scripts invoke whichever executable runs the local backend. Make the hidden decoder available to woodpecker-cli exec without requiring CLI configuration.
6543
reviewed
Aug 20, 2026
6543
reviewed
Aug 20, 2026
Co-authored-by: 6543 <6543@obermui.de>
6543
approved these changes
Aug 20, 2026
6543
enabled auto-merge (squash)
August 20, 2026 02:20
Contributor
|
Surge PR preview deployment was removed |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7023 +/- ##
==========================================
+ Coverage 49.17% 49.26% +0.09%
==========================================
Files 446 446
Lines 30183 30190 +7
==========================================
+ Hits 14842 14874 +32
+ Misses 14089 14063 -26
- Partials 1252 1253 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
woodpecker-cli 3.18.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## [3.18.0](https://github.com/woodpecker-ci/woodpecker/releases/tag/v3.18.0) - 2026-08-24⚠️ This release contains a migration that alters log storage. Depending on the number of stored log lines, it can take a while to complete. Back up before upgrading and allow for extra downtime. ### ❤️ Thanks to all contributors! ❤️ Special thanks to @arpitjain099, @abdullaabdullazade, @George928 and @RealFakeAccount for reporting security vulnerabilities! @6543, @AhmadNajiKam, @DEATIN, @OCram85, @Palleas, @YouCD, @anbraten, @confusedsushi, @gerbsen, @hasufell, @jrouly, @kastl-ars, @lafriks, @qwerty287, @retif, @romain-rossi, @spam-n-eggs, @stevapple, @xoxys, @zmully ### 🔒 Security - k8s: allow to disable runtime class name backend option [[#7046](woodpecker-ci/woodpecker#7046)] - Don't inject additional env vars into plugins [[#7040](woodpecker-ci/woodpecker#7040)] - Don't inject matrix env vars into plugins [[#7036](woodpecker-ci/woodpecker#7036)] - Update `golang.org/x/mod` [[#7012](woodpecker-ci/woodpecker#7012)] - Change group identifier to full_path for GitLab [[#6950](woodpecker-ci/woodpecker#6950)] ### 📈 Enhancement - Allow to add custom message to manual pipelines [[#6973](woodpecker-ci/woodpecker#6973)] - Add hidden `decode-base64` agent command for Windows local backend [[#7023](woodpecker-ci/woodpecker#7023)] - Enforce unique name for services and steps if dag is used [[#7032](woodpecker-ci/woodpecker#7032)] - Add custom list opts with all [[#6992](woodpecker-ci/woodpecker#6992)] - Add pipeline log download endpoint [[#6876](woodpecker-ci/woodpecker#6876)] - Reject invalid started and done workflow states [[#7029](woodpecker-ci/woodpecker#7029)] - Sort workflow files by name [[#7021](woodpecker-ci/woodpecker#7021)] - Reject incompatible gRPC proto version agents [[#7028](woodpecker-ci/woodpecker#7028)] - Enforce one log entry per line with a unique index [[#7004](woodpecker-ci/woodpecker#7004)] - Order the user feed by creation time instead of id [[#7005](woodpecker-ci/woodpecker#7005)] - Return step logs strictly in line order [[#6999](woodpecker-ci/woodpecker#6999)] - Find the preceding pipeline by number instead of id [[#7003](woodpecker-ci/woodpecker#7003)] - perf(schema): cache compiled YAML validation schema [[#7002](woodpecker-ci/woodpecker#7002)] - Pick a repo's latest pipeline by number instead of id [[#7001](woodpecker-ci/woodpecker#7001)] - feat: allow configuring allowed orgs per forge [[#6874](woodpecker-ci/woodpecker#6874)] - Make the Kubernetes cluster domain configurable [[#6957](woodpecker-ci/woodpecker#6957)] - Fix vite deprecation [[#6974](woodpecker-ci/woodpecker#6974)] - feat(web): extract ListEditor form component [[#6962](woodpecker-ci/woodpecker#6962)] - Rename `WOODPECKER_GRPC_VERIFY` to `WOODPECKER_GRPC_SKIP_VERIFY` [[#6947](woodpecker-ci/woodpecker#6947)] - Update frontend schema.json for documented backend options [[#6933](woodpecker-ci/woodpecker#6933)] ### 🐛 Bug Fixes - Prevent repository buttons from overlapping search bar [[#7047](woodpecker-ci/woodpecker#7047)] - fix(server): prefix manual trigger Ref with refs/heads/ [[#7051](woodpecker-ci/woodpecker#7051)] - fix runtime to ignore cancel as runtime error [[#7031](woodpecker-ci/woodpecker#7031)] - Fix orphaned pipelines after repo delete [[#6971](woodpecker-ci/woodpecker#6971)] - Migrate modernize encryption service [[#6830](woodpecker-ci/woodpecker#6830)] - Fix running multiple cmdlets on windows [[#6968](woodpecker-ci/woodpecker#6968)] - server: drop stale queued tasks for terminal workflows [[#7015](woodpecker-ci/woodpecker#7015)] - fix(gitlab): avoid N+1 member lookups in Repos() [[#6991](woodpecker-ci/woodpecker#6991)] - agent: retry connect on DeadlineExceeded, not just Unavailable [[#6975](woodpecker-ci/woodpecker#6975)] ### 📚 Documentation - Update pnpm to v11.23.0 [[#7061](woodpecker-ci/woodpecker#7061)] - Update dependency marked to v18.0.10 [[#7052](woodpecker-ci/woodpecker#7052)] - k8s backend: fix step example using incorrect "detached" property [[#7016](woodpecker-ci/woodpecker#7016)] - Update docs npm deps non-major [[#7010](woodpecker-ci/woodpecker#7010)] - highlight the nodeSelector doesn't work by default [[#7007](woodpecker-ci/woodpecker#7007)] - Update pnpm to v11.21.0 [[#6982](woodpecker-ci/woodpecker#6982)] - Update docs npm deps non-major [[#6979](woodpecker-ci/woodpecker#6979)] - Update documentation link for NestGuard plugin [[#6954](woodpecker-ci/woodpecker#6954)] - Make intro example actually usable [[#6953](woodpecker-ci/woodpecker#6953)] - Update docs npm deps non-major [[#6925](woodpecker-ci/woodpecker#6925)] - Fix old link to Gitea docs [[#6932](woodpecker-ci/woodpecker#6932)] ### 📦️ Dependency - Update web npm deps non-major [[#7060](woodpecker-ci/woodpecker#7060)] - Lock file maintenance [[#7062](woodpecker-ci/woodpecker#7062)] - Update web npm deps non-major [[#7054](woodpecker-ci/woodpecker#7054)] - Update woodpeckerci/plugin-git Docker tag to v2.10.0 [[#7059](woodpecker-ci/woodpecker#7059)] - Update docker.io/golang Docker tag to v1.27 [[#7055](woodpecker-ci/woodpecker#7055)] - Update pre-commit hook golangci/golangci-lint to v2.13.1 [[#7058](woodpecker-ci/woodpecker#7058)] - Update docker.io/techknowlogick/xgo Docker tag to go-1.27.x [[#7056](woodpecker-ci/woodpecker#7056)] - Update module gitlab.com/gitlab-org/api/client-go/v2 to v2.58.2 [[#7053](woodpecker-ci/woodpecker#7053)] - Update golang-packages to v0.36.4 [[#7050](woodpecker-ci/woodpecker#7050)] - Update golang-packages [[#7045](woodpecker-ci/woodpecker#7045)] - Update module github.com/getkin/kin-openapi to v0.147.0 [[#7039](woodpecker-ci/woodpecker#7039)] - Update module github.com/urfave/cli/v3 to v3.11.0 [[#7017](woodpecker-ci/woodpecker#7017)] - Lock file maintenance [[#7018](woodpecker-ci/woodpecker#7018)] - Update web npm deps non-major [[#7009](woodpecker-ci/woodpecker#7009)] - Update module gitlab.com/gitlab-org/api/client-go/v2 to v2.58.0 [[#7014](woodpecker-ci/woodpecker#7014)] - Update postgres Docker tag to v18.6 [[#7011](woodpecker-ci/woodpecker#7011)] - Update dependency golang to v1.26.6 [[#7008](woodpecker-ci/woodpecker#7008)] - Update module golang.org/x/net to v0.58.0 [[#6996](woodpecker-ci/woodpecker#6996)] - Update module golang.org/x/crypto to v0.55.0 [[#6994](woodpecker-ci/woodpecker#6994)] - Update module google.golang.org/protobuf to v1.36.12 [[#6989](woodpecker-ci/woodpecker#6989)] - Update pnpm to v11.21.0 [[#6983](woodpecker-ci/woodpecker#6983)] - Update dependency eslint to v10.8.1 [[#6977](woodpecker-ci/woodpecker#6977)] - Update module github.com/google/go-github/v89 to v90 [[#6980](woodpecker-ci/woodpecker#6980)] - Update google.golang.org/protobuf digest to 644d026 [[#6976](woodpecker-ci/woodpecker#6976)] - Update woodpeckerci/plugin-git Docker tag to v2.9.3 [[#6978](woodpecker-ci/woodpecker#6978)] - Update web npm deps non-major [[#6939](woodpecker-ci/woodpecker#6939)] - Update module github.com/docker/cli to v29.7.2+incompatible [[#6966](woodpecker-ci/woodpecker#6966)] - Update web npm deps non-major [[#6928](woodpecker-ci/woodpecker#6928)] ### Misc - Remove gitpod [[#7013](woodpecker-ci/woodpecker#7013)] - Drop star-history [[#6997](woodpecker-ci/woodpecker#6997)] - Do not run openapi generation twice on fail [[#6987](https://github.com/woodpecker-ci/woodpecker/pull/6987)]</pre> <p>View the full release notes at <a href="https://github.com/woodpecker-ci/woodpecker/releases/tag/v3.18.0">https://github.com/woodpecker-ci/woodpecker/releases/tag/v3.18.0</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!17633
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add hidden
decode-base64agent command for Windows local backendSummary
Add a hidden internal
decode-base64subcommand towoodpecker-agentand use it when generating Windowscmd.exescripts in the local backend.Motivation
The local Windows backend currently needs to print each command with a leading
+before executing it.Escaping arbitrary command lines for
cmd.exeis difficult and error-prone. The existing implementation uses POSIX shell escaping and additional replacements for characters such as&and|, which does not accurately reflect Windows command-line syntax and can alter the displayed command.Instead, this change Base64-encodes the trace output when generating the batch file and lets the already-running Woodpecker agent decode it again:
This keeps the batch file itself free of arbitrary command text in the tracing statement, while preserving the original command exactly in the output.
Changes
woodpecker-agent decode-base64subcommand.os.Executable()in the local Windows backend to invoke the same agent executable that generated the batch file.+ <command>\nusing standard Base64 before adding the trace line to the generated batch file.shellescape-based workaround for Windows command tracing.The command is intentionally hidden because it is an implementation detail of the local backend rather than part of the public agent CLI.