-
Notifications
You must be signed in to change notification settings - Fork 53
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
Importing package from other owners or organization #765
Comments
I think you're missing something. Are your private repos separate from the repo against which the action is running? If so, I don't see where they are getting imported: you're just giving the package names to There are two use-cases for private repositories:
See: https://github.com/ros-tooling/action-ros-ci#Use-with-private-repos For use-case 1, you simply need to use
For use-case 2, you need to tell action-ros-ci/.github/workflows/test.yml Line 74 in e0eeca0
You also need to create a personal access token (PAT) with read permission for your private repos (
The documentation should be updated to give a complete example for this last use-case. |
I would rather use a deploy key, which is bound to a repo, over a PAT, which is bound to my account. Can I supply more than one import-token somehow? Another alternative is to use the |
Unfortunately not :/ at least currently. The provided token is used globally, and only one token is expected: action-ros-ci/src/action-ros-ci.ts Lines 436 to 466 in e0eeca0
Not sure if we can add/use multiple tokens using this method.
That is a great idea, but unfortunately I don't think it's going to work currently. action-ros-ci/src/action-ros-ci.ts Line 407 in e0eeca0
Other than using the |
@christophebedard Could you give us an example of how this could be achieved via a workflow file? |
You cannot do it currently, because action-ros-ci/src/action-ros-ci.ts Lines 426 to 431 in 48e2c83
action-ros-ci runs. Then you'd just have a - run: git clone ... step before the ros-tooling/action-ros-ci step.
|
So what you are saying is that this way we can provide multiple tokens to clone more than one repo into the workspace before action-ros-ci is invoked? |
Yeah, you should be able to import any repo using the proper token without |
Description
The github action doesn't seem to be able to retrive the repository for my organization or external organization.
Expected Behavior
The action is suppose to pull all the repository necessary for compiling this package and run compilation
Actual Behavior
After the action-ros-ci, it succeeds to retriving the repository the action is started on and fails pulling repo from the organization or public repo from other person/organization
My yaml file :
To Reproduce
System
The text was updated successfully, but these errors were encountered: