Latest v2 broke all of my private github actions
See original GitHub issueAfter the release this morning, all of my github actions using checkout to pull a private action started failing.
- uses: actions/checkout@v2
with:
repository: privateorg/actions
path: .privateorg-actions
ssh-key: ${{ secrets.GITSSHKEY }}
I would like to request that you revert the change that is now breaking hundreds of my private workflows.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:9
Top Results From Across the Web
repository not found · Issue #254 · actions/checkout - GitHub
I just reran some public repo actions and they worked correctly, but my private repos are failing every time.
Read more >Support private repositories and private submodules #287
As a work-around we use the following in our workflow. steps: - name: clone main repository uses: actions/checkout@v2 - name: clone ...
Read more >private submodule checkout fails @v2 · Issue #116 - GitHub
I've private git submodule, which contains our shared i18n resouces, with same organization owner as my main repo I've configured git ...
Read more >GITHUB_TOKEN does not have access to other private ...
we have 2 private repos under one org that are published as npm packages in the GPR. One of them has as a...
Read more >Not using "token" on github server · Issue #229 · actions/setup ...
token }} by default from the actions.yml file. So I believe the check for github server was added so that tokens from the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’ve been running into the same error message as @mizumotok - the default branch selection logic still seems to have some major issues.
Our configuration:
For the time being, setting the ref explicitly fixed the issue for us:
I agree with @drwoods - it seems like v2.3 introduced some breaking changes, so it should have been a v3 release instead.
Same here. This is breaking all of our test runs since they fetch info from a different repo than the tested one. Pretty sure this is caused by https://github.com/actions/checkout/pull/278 @ericsciple
Using the repo token is not a valid solution in general since it doesn’t work for ssh keys that are passed via secrets that are not part of the normal TOKEN.
For some reason in that PR it was decided to use the proprietary Github API instead of the standard git api to determine the default branch, which means this also shouldn’t work for repos from any other provider other than github.
The standard git api for determining the default branch is fetching the HEAD ref from the remote. If the repo is already synchronized, this is just
git symbolic-ref refs/remotes/origin/HEAD
. Otherwise, it can be fetched by either:git remote show https://github.com/actions/checkout | grep 'HEAD branch'
human readable, only works within a git repogit ls-remote --exit-code --symref https://github.com/actions/checkout HEAD
works from anywhere, independent of the surrounding repository, machine readable output (i guess)Also, instead of just failing completely when default branch cannot be determined (might be possible to configure a repo to not have one?) it should probably still fall back to master to be compatible with previous behaviour?