swiftlang / swiftlang/github-workflows
The build fails if any private repository is used as a dependency
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 115
- Forks
- 57
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 3
Description
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/ssh-agent@v0.7.0
with:
ssh-private-key: |
${{ secrets.YOUR_SECRET_HERE }}
I am happy to provide a PR, if that would be useful.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with .github/workflows/swift_package_test.yml and inspect the checkout step and its handling of private Swift package dependencies. Reproduce the failure with a private repository dependency, then verify that the workflow can access it using the issue's proposed SSH-agent configuration and that the workflow completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100