mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1343] Unable to clonem Error: authentication required on repository actions #721
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#721
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 @Alegrowin on GitHub (Sep 12, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1343
Bug report info
Command used with act
Describe issue
I just updated my local act version with the latest version.
When I run the act cli with a clean state, I keep getting authentication required.
I tried all the version until v0.2.21 and it started to work again.
curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash -s v0.2.21
P.S. I'm running act inside a container inside vscode devcontainer with a mounted docker.sock on my host.
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
@emptyflask commented on GitHub (Sep 21, 2022):
Same here, using act v0.2.31 and a known good github token (which is also present in the current env, but figured I'd explicitly pass it into act as well):
@ValeHaas commented on GitHub (Oct 14, 2022):
I just ran into this issue as well (on Windows) and I could solve it by logging out of Docker Desktop, as hinted on by https://github.com/nektos/act/issues/1166#issuecomment-1133637204
@github-actions[bot] commented on GitHub (Nov 14, 2022):
Issue is stale and will be closed in 14 days unless there is new activity
@elvinristi commented on GitHub (Dec 22, 2022):
I got this same error when I had incorrect
GITHUB_TOKENvalue.Generating new one which started with
ghp_and assigning this fixedError: authentication required@melMass commented on GitHub (Jul 22, 2023):
I know it's an old issue, but it has high hits on google.
I had this issue when using the scoop install with
act -s GITHUB_TOKEN="$(gh auth token)"but just uninstalled the scoop package and used the gh extensiongh extension install https://github.com/nektos/gh-act, auth is done properly without explicitly passing the token now@V0lantis commented on GitHub (Nov 16, 2023):
Didn't work for me 😢
resulted in
@soubhik-c commented on GitHub (Jan 5, 2024):
I'm getting the same error with v0.2.31 and new ghp_ GITHUB_TOKEN
@bonzofenix commented on GitHub (Jan 22, 2024):
Same error here !
@smagret commented on GitHub (Apr 9, 2024):
Same here with v0.2.60:
gh act -j install_in_docker -s GITHUB_TOKEN="$(gh auth token)"Resulted in
Solved
Okay!! While writing this I found that the problem is the
-s GITHUB_TOKEN="$(gh auth token)", I ran the same command without setting the token and worked (gh act -j install_in_docker)@jgf5013 commented on GitHub (Apr 17, 2024):
Well that's weird... I ran into the same issue and reran my command without the
-sflag and now back to working@mrclrchtr commented on GitHub (Aug 19, 2024):
I can't get it work... neither with
gh actnor withactand-s GITHUB_TOKEN="$(gh auth token)".it's only working, when I put the token manually with
-s GITHUB_TOKEN=mytoken.@Kixunil commented on GitHub (Sep 10, 2024):
Why would it even need the token? The repository is public anyway.I had a type and wroteaction/checkoutinstead ofactions/checkout.@nam20485 commented on GitHub (May 21, 2025):
This worked me. Just:
Just works now- I dont't have pass any args or put GITHUB_TOKEN in the environment.