[Question]: GitHub App authentication to download dependencies from another organization #1616
-
QuestionI am using AL-Go for GitHub v6.4 and would like to know if it is possible to use GitHub App authentication to download dependencies from a repository in another organization that belongs to the same account where the GitHub App was created. If so, what permissions need to be granted? I have followed the documentation to create a GhTokenWorkflow, but it doesn’t seem to be enough. The "Update AL-GO system files" action runs successfully, but the CI/CD pipeline fails with the following error: I have configured the following permissions for the GitHub App:
Are there additional permissions required to allow authentication and access to repositories in another organization within the same account? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 9 replies
-
You are using the appDependencyProbingPaths and inside that specifying a secret, which contains an app id + key - I assume? I will investigate whether that is possible today or we need to do something in order to make this work. |
Beta Was this translation helpful? Give feedback.
-
Yes, this one:
The GhToken is the same used for UpdateAlGoSystemFiles |
Beta Was this translation helpful? Give feedback.
-
Did you install the GitHub App in the other organization (the organization in which you have a dependency) and give it access to the repositories in question? |
Beta Was this translation helpful? Give feedback.
-
Yes, in fact, the repo is in the same organization, and the GitHub App has permissions for all repositories. |
Beta Was this translation helpful? Give feedback.
-
Sounds like a bug - will investigate |
Beta Was this translation helpful? Give feedback.
-
@amunoz-ldr - is the GitHub app installed in all repositories as well? |
Beta Was this translation helpful? Give feedback.
-
it is - can you show me this part of your log in Download Project Dependencies: |
Beta Was this translation helpful? Give feedback.
-
Sure:
|
Beta Was this translation helpful? Give feedback.
-
Both repos are in the same organization, but same error with new permissions, |
Beta Was this translation helpful? Give feedback.
Shipped in preview