mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #233] Git checkout requires github token #162
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#162
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 @ovitente on GitHub (May 13, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/233
Hello
OS: MacOS Catalina
GIT: 2.26.2 (installed through brew and added
/usr/local/bin/to$PATH)My workflow has this step
As result with
actcan't continue due this error that i can't handle, because there are no info in--helpabout it.Questions:
actis trying to get reach into remote private repo instead of using local fresh pulled copy?opts.authfile and where to put it to getactworking?@gimmyxd commented on GitHub (May 13, 2020):
@ovitente i got past a similar issue by using
GITHUB_TOKEN=my_token act command@ovitente commented on GitHub (May 14, 2020):
@gimmyxd Unfortunately I am receiving the same error.
GITHUB_TOKEN=my_token actor
Not working :(
@Magnum97 commented on GitHub (Jun 5, 2020):
I found that if one goes to Settings and Personal Access Tokens, and generate a new token. Make sure to remove all access except user and use this key in place of
${ secrets.GITHUB_TOKEN )it solved my issue with this exact error.Edit:
Felt negligent not to mention that you should not commit this to your repository. I created a local branch to use it in for testing.
@github-actions[bot] commented on GitHub (Aug 5, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@1oglop1 commented on GitHub (Sep 27, 2020):
Thanks all above for the workaround, I just hit the same issue.
I could clone my own repo but when I tried to clone another public repo I've got an error. It may be have to do something with this: https://github.com/actions/checkout#checkout-multiple-repos-private
even though the bolt-python repo is public.
It would be good to mention this in README of
actproject or use GitHub token as a requirement by default.@ovitente commented on GitHub (Oct 20, 2020):
Working solution for token on current version, -
0.2.16@yoanne2x commented on GitHub (May 7, 2021):
Hi, I would like to re-open this issue.
I have just installed act on my local mac, tried to run it against a private rep and I have the same issue as above:
[CI/Deployment] ❗ ::error::Input required and not supplied: token
[CI/Deployment] ❌ Failure - actions/checkout@v2
If I manually add the token in the action within the job with my personal generated token, it will work.
If I try to use the export GITHUB_TOKEN=<> and execute act, I get the same error.
is there something that I am missing?
kind regards
@catthehacker commented on GitHub (May 7, 2021):
You should pass
GITHUB_TOKENas secret,act -s GITHUB_TOKEN=[insert token or leave blank for secure input]@torbjornvatn commented on GitHub (May 7, 2021):
@catthehacker Maybe we should make this clear in the README, because there it's only mentioned as a something you need to use GHE
@YuMuuu commented on GitHub (May 28, 2021):
I encounted the same problem.
https://github.com/nektos/act/issues/233#issuecomment-834288585
Why need the gtihub token to run locally ??
@catthehacker commented on GitHub (May 28, 2021):
@YuMuuu please see #678
@YuMuuu commented on GitHub (May 28, 2021):
@catthehacker Thanks for the information! I I understood it.
@merlinstardust commented on GitHub (Jun 1, 2021):
Since the
GITHUB_TOKENis required,actshould check if it's passed in and if it's not there,actshould immediately alert the user to its necessity.Also, the README does not mention that this is required
@catthehacker commented on GitHub (Jun 1, 2021):
@merlinpatt please see #678
@sooyean-hoo commented on GitHub (Jun 7, 2024):
Google until I am super - stress.... All I want to do was to just get out the runner... I would suggest a simple walkthru or some use case to run some of this stuff...
To put it simply, a happy flow to make ppl who are stressed happy.....
Anyway u can try this.. just add
To a file called
.secretsFor me, It will work.... please use the actual token.... : stating the obvious... E.g.
@sikha-root commented on GitHub (Jul 29, 2024):
Since we live in a Google world...
If you really need to use a token (likely if you're using any action that expects
github.token), then(or any variant) should suffice for those who have GH CLI already configured, assuming your user has the right permissions. But to state the obvious, this can let
actmake actual changes to things, so use it with intent and caution.