mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #546] Issue: Asterisk floods the terminal output #368
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#368
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 @iongion on GitHub (Feb 24, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/546
Act version
Ubuntu 20.10 - any terminal
Expected behaviour
Unreadable terminal output due to asterisk flood
Actual behaviour
Terminal output is full of asterisk symbols
Workflow and/or repository
On any command
Steps to reproduce
Just invoke act
actoutputLog
@miraclebg commented on GitHub (Feb 25, 2021):
Same issue here
@miraclebg commented on GitHub (Feb 25, 2021):
It happens only if secrets with content are passed.
@github-actions[bot] commented on GitHub (Mar 28, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@jsoref commented on GitHub (Apr 4, 2021):
@github-actions[bot] commented on GitHub (May 6, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@catthehacker commented on GitHub (May 6, 2021):
Cannot reproduce the issue. Please provide more information about terminal you are using and how to reproduce it.
@rdsedmundo commented on GitHub (Jun 6, 2021):
I'm facing the same problem.
act pull_requestworks (but it throws my secret is missing).Then I pass the secret with
act -s GITHUB_TOKEN=secret pull_requestand it outputs (a part of it):Doing a quick replace from
***-> ``, I can see the real message is there in the middle of the asterisk flood:@jsoref commented on GitHub (Jun 6, 2021):
Is your secret in UCS2/UTF16?
env|hexdump -C@rdsedmundo commented on GitHub (Jun 7, 2021):
Sorry, I'm not really sure what you mean with respect to the encoding. I just copied the plain token from the Github UI.
I did more tests.
Those work:
Those cause the asterisk flood:
I was calling it like these above originally, arguably incorrect, but still the asterisk flood is an unexpected behavior I guess.
@catthehacker commented on GitHub (Jun 7, 2021):
@rdsedmundo are you also using Ubuntu?Ok, I've been able to reproduce the issue with
bashon Alpine.This is wrong, since shell will try to execute it as a command
JUST. DON'T, there is no need for command substitution when using just envvar
Why?
@rdsedmundo commented on GitHub (Jun 7, 2021):
OS: macOS 11.4
Shell: 5.8 - /bin/zsh
Docker: 20.10.6 - /usr/local/bin/docker
Bash: 3.2.57 - /bin/bash
@catthehacker commented on GitHub (Jun 7, 2021):
I've updated my response
@rdsedmundo commented on GitHub (Jun 7, 2021):
I managed to funnel the reproduction, both below trigger the flood here as well:
So the problem is here about empty values. We use strings.replaceAll and it replaces the empty characters with
***.Outputs:
Maybe we can add a validation to the secret input to throw if it's empty.
@catthehacker commented on GitHub (Jun 7, 2021):
@rdsedmundo thanks, that helped a lot figuring out what happens