Hello
OS: MacOS Catalina
GIT: 2.26.2 (installed through brew and added /usr/local/bin/ to $PATH)
My workflow has this step
- uses: actions/checkout@v2
name: GIT | Checkout
with:
ref: ${{ github.ref }}
As result with act can't continue due this error that i can't handle, because there are no info in --help about it.
| Syncing repository: <repo-owner>/<myrepo>
[STAGE | DEPLOY/CI | api | DEPLOY] ? ::group::Getting Git version info
| Working directory is '/github/workspace'
[STAGE | DEPLOY/CI | api | DEPLOY] ? ::endgroup::
| Deleting the contents of '/github/workspace'
| The repository will be downloaded using the GitHub REST API
| To create a local Git repository instead, add Git 2.18 or higher to the PATH
| Downloading the archive
| Parameter token or opts.auth is required
| Waiting 11 seconds before trying again
| Downloading the archive
| Parameter token or opts.auth is required
| Waiting 17 seconds before trying again
Error: context canceled
Questions:
act is trying to get reach into remote private repo instead of using local fresh pulled copy?opts.auth file and where to put it to get act working?What should i put into opts.auth file and where to put it to get act working?
@ovitente i got past a similar issue by using GITHUB_TOKEN=my_token act command
@gimmyxd Unfortunately I am receiving the same error.
GITHUB_TOKEN=my_token act
or
export GITHUB_TOKEN=my_token
act
Not working :(

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.
Issue is stale and will be closed in 7 days unless there is new activity
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.
- name: Checkout
uses: actions/checkout@v2
with:
path: main
- name: Checkout bolt-python repo
uses: actions/checkout@v2
with:
repository: slackapi/bolt-python
path: bolt-python
It would be good to mention this in README of act project or use GitHub token as a requirement by default.
Working solution for token on current version, - 0.2.16
cd your_local_repo_directory
export GITHUB_TOKEN=YOUR_TOKEN
act -w .github/workflow/dev.yaml
Most helpful comment
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.