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

Feature request: Pass SSH key for private git dependencies #94

Open
lcmgh opened this issue Mar 7, 2024 · 0 comments
Open

Feature request: Pass SSH key for private git dependencies #94

lcmgh opened this issue Mar 7, 2024 · 0 comments

Comments

@lcmgh
Copy link

lcmgh commented Mar 7, 2024

When building my Rust projects I normal add a step to setup a SSH key before executing cargo. Otherwise cargo is not able to authorize itself when private git dependencies are configured.

Adding such a step prior the rust build action still makes the build not working.

# Add SSH keys for internal Git dependencies
- name: Install SSH key
  uses: shimataro/ssh-key-action@v2
  with:
    key: ${{ secrets.GIT_DEPENDENCIES }}
    name: GIT_DEPENDENCIES
    known_hosts: unnecessary
    config: |
      Host some-git-env.com
        User git
        HostName  some-git-env.com
        IdentityFile ~/.ssh/GIT_DEPENDENCIES
        IdentitiesOnly yes
    if_key_exists: replace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant