mirror of
https://github.com/nektos/act.git
synced 2026-04-26 17:35:49 +03:00
[GH-ISSUE #2290] actions/checkout: "Input required and not supplied: token" when specifying a ref as input #1066
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#1066
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 @Wenzel on GitHub (Apr 11, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2290
Bug report info
Command used with act
Describe issue
I'm facing an issue with act when running any job that tries to clone a repository with
actions/checkoutwhile specifying therefparameter.Link to GitHub repository
https://github.com/Wenzel/bug_report/tree/act/checkout_ref_error
Workflow content
Relevant log output
Additional information
When the ref parameter is removed, act works fine and actions/checkout manages to clone the repo.
Link the failed workflow run for reproducibility:
https://github.com/Wenzel/bug_report/actions/runs/8645464938/job/23702674057
Thanks for act !
@ChristopherHX commented on GitHub (Apr 11, 2024):
Actually no, actions/checkout is just replaced by docker cp in that case.
act -s GITHUB_TOKENshould make it possible to run it with a user supplied token, created a invalid token causes more errors than an empty one@gwynforthewyn commented on GitHub (May 12, 2024):
@Wenzel Because of your bug and ChrstopherHX's comment, I searched the usage guide and found a section dealing with this. On the Usage page https://nektosact.com/usage/index.html search for GITHUB_TOKEN.
It's a bit counter-intuitive to me that this case needs an auth token, but if you have the gh cli installed then the solution's this simple
act -s GITHUB_TOKEN="$(gh auth token)"@github-actions[bot] commented on GitHub (Nov 9, 2024):
Issue is stale and will be closed in 14 days unless there is new activity