Skip to content
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

Issue with git clone when the repo include submodules from other repositories #1089

Closed
or-he-MA opened this issue Apr 4, 2024 · 3 comments
Closed
Labels
kind/duplicate This issue or pull request already exists

Comments

@or-he-MA
Copy link

or-he-MA commented Apr 4, 2024

Description

We have some submodules in our repo, that points to some other repositories.
Since the first stage of the build-push-action is to checkout the current repo, it keeps failing with the error:

git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

When using the the checkout action (https://github.com/actions/checkout) we can overcome it using the submodules option, for example:

      - name: "Checkout current repo"
        uses: actions/checkout@v4
        with:
          submodules: recursive

So if i could control wether to checkout the repo and disable it, or the other hand have the option to overcome the submodules, it would be great. Since right now our workflow is failing due to that issue.

@or-he-MA or-he-MA added kind/enhancement New feature or request status/triage labels Apr 4, 2024
@crazy-max
Copy link
Member

Seems a duplicate of #638

@or-he-MA
Copy link
Author

or-he-MA commented Apr 4, 2024

@crazy-max You are right. Didn't noticed it. The question is if there is an option to add the ability to disable the default checkout that is currently happening using the build-push-action.

If needed we can close this thread and i'll comment on #638

@crazy-max
Copy link
Member

Yes you can workaround it using the Path context as shown in #638 (comment)

I'm closing this issue, let's continue the convo in #638

@crazy-max crazy-max added kind/duplicate This issue or pull request already exists and removed kind/enhancement New feature or request status/triage labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants