Closed frottke closed 3 weeks ago
Just an idea: A 404 in that case could also indicate that you do not have enough rights for the operation against gh. is this using the gh cli command ? if so, you can check what rights you have. gh cli has its own token (gho_). run
gh auth status
on the local machine.
you normally only get a really limited Token scope. However you can extend this scopes with --scopes :
gh auth refresh --scopes read:packages
if this is not making use of the gh cli and runs the command straight against the API, you might want to check your created token (ghg_)
compare to this: https://github.com/microsoft/AL-Go/discussions/1141#discussioncomment-10084671
it looks like the PAT is used but has an different behaviour in the workflow compared to the local dev script. giving myself more permissions via gh auth refresh is no solution because the repository I want to access via the PAT is outside of my own organisation.
@freddydk would you be so kind and have a look at this issue? This issue is currently hampers our productivity when creating local containers.
When using localdevenv - it should use your current GitHub access token to download the dependencies. Can you confirm that you have access to these repos and the built apps?
we do not have access to the external repository but within appDependencyProbingPaths is an defined AuthTokenSecret which works in the workflow, but not in localdevenv. It looks like if the token is "not applied".
GitHub secrets cannot be extracted locally - this when running localdevenv, you need access to at least read from these repositories - or use GitHubPackagesContext (NuGet) to share dependencies between repositories.
AL-Go version
5.3
Describe the issue
When downloading the dependencies via "appDependencyProbingPaths" in CI/CD it works like it should but via localdevenv.ps1 it says -> "Error: Response status code does not indicate success: 404 (Not Found)."
The same configuration is applied.
relevant log ->
We already checked if there a artifacts available by simply running CI/CD. That way it works, same config
Expected behavior
correct download of the artifacts
Steps to reproduce
config an appDependencyProbingPaths with an external private repository out of the own organisation
Additional context (logs, screenshots, etc.)
No response