mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #881] Issue: More clearly indicate that failures can result because GITHUB_TOKEN is not passed in as a secret #526
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#526
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 @hexmode on GitHub (Nov 14, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/881
System information
act: nektos/act-environments-ubuntu:18.04actversion: 0.2.24Expected behaviour
git task run
Actual behaviour
act run on same repo
Workflow and/or repository
workflow
@catthehacker commented on GitHub (Nov 14, 2021):
What is the problem?
@hexmode commented on GitHub (Nov 14, 2021):
I put it in the issue title, but, to expand, this section of the github action is not performed:
Setting up auth
You can see in the
actrun this comment:but the corresponding commands from the github action run are never executed.
@hexmode commented on GitHub (Nov 14, 2021):
This is my fault. I did not set GITHUB_TOKEN.
This suggests that "MAKE SURE YOUR GITHUB_TOKEN IS SET IF YOU ARE TRYING TO USE ACTIONS THAT REQUIRE IT" should be a more visible message in the documentation and displayed on failure for a possible fix to the failure.
GITHUB_TOKENwas in the environment, but it was empty. When it is set in the environment is a good time to highlight that it is not available.Looking around for how GITHUB_TOKEN is set, I saw the documentation I found a brief reference in the README.
Since the token is used for various Github services and this tool is meant to "Run your GitHub Actions locally", that would suggest that this should be more clearly spelled out.
I've updated the issue title so that it this (suggesting setting the GITHUB_TOKEN secret) is something that would be suggested on failure.
@catthehacker commented on GitHub (Nov 14, 2021):
@hexmode commented on GitHub (Nov 14, 2021):
I agree that is there. My point is that more could be done to help idiots like myself.
@hexmode commented on GitHub (Nov 14, 2021):
This is especially true since the secret is set automatically when running on Github itself.
@catthehacker commented on GitHub (Nov 15, 2021):
If you have any suggestion towards improving documentation, please share.
As for the error in CLI, I'm rather against adding any messages for such specific issues since it can confuse more than help.
@github-actions[bot] commented on GitHub (Dec 16, 2021):
Issue is stale and will be closed in 14 days unless there is new activity