I have successfully pushed some Gradle packages to GitHub Package Registry using the built in GITHUB_TOKEN
of the given repo in GitHub Actions.
Now I want to download the packages when building with GitHub Actions in another repo. The docs suggest using a Personal Access Token to do this, but I don't want the token to be connected to my account, rather to the organization the code belongs to.
I have previously used an app installation token for such tasks, and given it full write permissions to repositories and packages. It works fine for e.g. Terraform and other git tasks.
When I try to use it with Gradle, it returns a 400 Bad Request
:
> Could not GET 'https://maven.pkg.github.com/<my package>.pom'. Received status code 400 from server: Bad Request
Is there any way to make this work?