mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2161] .actrc ignores command substitution #1032
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#1032
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?
Originally created by @phoolish on GitHub (Jan 19, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2161
Act version
0.2.57
Feature description
The README.md documentation recommends using
act -s GITHUB_TOKEN="$(gh auth token)"for setting your github token during runs, but adding the argument to your.actrcignores the command substitution and results in$GITHUB_TOKENbeing set to"$(gh auth token)".It would be helpful if
.actrcproperly evaluated the commands, but I understand if that is a large undertaking and is better left to a wrapper script.@luckydonald commented on GitHub (Jan 29, 2024):
This would also allow for other commands like using Bitwarden-cli or something similar to fetch secrets.
@chrisspiegl commented on GitHub (Jul 29, 2024):
I ran into the same issue and was confused until I found out that I basically have to create an alias for
actwhich includes theact -s GITHUB_TOKEN="$(gh auth token)"stuff.That makes it at least a bit easier to work with and not have to include it every time I use
act.I hope the
.actrccan be improved like that? Or maybe some command we can set in.actrcthat automatically does thegh auth tokenin the background?@ravensorb commented on GitHub (Jan 23, 2025):
Would be good if it handled command subst and env variable expansion. This would simplify a LOT.