mirror of
https://github.com/nektos/act.git
synced 2026-04-25 17:05:50 +03:00
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#2635
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/5948
Author: @AbhinavSivanandhan
Created: 10/10/2025
Status: 🔄 Open
Base:
master← Head:fix/sanitize-manpage-defaults📝 Commits (1)
2a41b55docs(man): redact IP-like defaults for address flags in generated man page📊 Changes
2 files changed (+54 additions, -0 deletions)
View changed files
📝
cmd/root.go(+37 -0)📝
cmd/root_test.go(+17 -0)📄 Description
Problem:
act --man-pageembeds the local outbound IP in defaults for address flags (e.g., --artifact-server-addr, --cache-server-addr). That breaks reproducible builds and leaks a private detail.Approach:
Only for documentation generation, replace printed defaults that:
with a deterministic placeholder: [auto-detected IP].
Runtime behavior is unchanged. When
actactually runs, it still uses the dynamic outbound IP.Implementation:
generateManPage()that walks the root command (and subcommands) and rewritesDefValuefor matching flags.TestSanitizeFlagDefaultsForDocsvalidates behavior across persistent/local flags and subcommands.Testing
go test ./cmd -run Sanitize -vpasses./act --man-pageshows[auto-detected IP]in place of a real IP for address flags.Fixes #5894
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.