Skip to content

The build fails if any private repository is used as a dependency #59

Open
@GErP83

Description

@GErP83

If any private repository is used as a dependency in a project, the following error appears after running swift_package_test.yml:

fatal: Could not read from remote repository.
    Please make sure you have the correct access rights
    and the repository exists.

This issue can be resolved by adding this action as a new step before checkout step:

- name: Add keys to ssh-agent
        uses: webfactory/[email protected]
        with:
          ssh-private-key: |
            ${{ secrets.YOUR_SECRET_HERE }}

I am happy to provide a PR, if that would be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions