-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Organization ssh url will not support submodule checkout #570
Comments
@bauergeorg could you clarify the following statement:
I am not aware of anything that changed on the service. Did your checked-in submodule configuration change in your repo? |
@ericsciple If you copy the ssh url of your organization repo. The displayed ssh url starts with "[email protected]". In the past it starts with "[email protected]". (I think they changed that around may '21.) See screenshot below: If you checkout a single repo without submodules both works. But if you have an "org"-format in your ".submodules" file it won't work. You have to hange it into "[email protected]"-style. |
No. ".gitsubmodules" in this style works:
And in this style it won't work:
|
@bauergeorg can you confirm you are not providing the input
It's strange that the clone URL in the UI is different for you. Mine are always like |
@bauergeorg i learned the format from the git docs, it doesn't look like Can you add the following step to one of your workflows and confirm whether - name: Dump gitub.event context
env:
GITHUB_CONTEXT: ${{ toJson(github.event) }}
run: echo "$GITHUB_CONTEXT" |
Sorry for late answer:
Yes, of course I activated SSH certificate authentication. But it's not required.
Yes the number matches! {
"organization": {...},
"ref": "refs/heads/main",
"repository": {
...
"owner": {
...
"id": 79205061,
"login": "rohmanngmbh",
...
},
...
},
"sender": {
...
},
"workflow": ".github/workflows/main.yml"
} |
draft pr here i need to do some e2e testing |
@ericsciple thanks a lot! |
just released v2.4.0, pushing the v2 tag forward now... |
hello @ericsciple for me still not working with the below config
the only difference is that we have an additional name, its GH Enterprise, I have git app with token, so i'd like to use HTTPS, its trying to use ssh and we got access denied. can you help with that? |
If you have a repository with submodules of your own organization linked with organization-ssh-url: the checkout will fail!
In detail:
A few weeks ago github changed the ssh-clone-url from: git@github.com:my-org/my-repo.git into org-git1234567[email protected]:my-org/my-repo.git. If you generate a repo with submodules liked by the org-ssh-url style your recursive checkout of the submodule will fail with follwoing messages:
Extract of the workflow-file:
Some background info:
I asked the support why they changed the git- into the org-12345678-option months ago.
To replace the "org-12345678" with "git" is only a workaround. I generated a script which checks all ".gitsubmodule"-files in my organization and report me. It feels a litte crazy...
Proposal:
In the readme you comment:
Is there an option to convert org-12345678-urls?
The text was updated successfully, but these errors were encountered: