Unable to push to GitHub Packages (400 Bad Request)

Hi all,

I’m trying to configure GitHub Actions to work with GitHub Packages.

I’ve taken Gradle configuration from https://help.github.com/en/articles/configuring-gradle-for-use-with-github-package-registry#authenticating-to-github-package-registry

I’ve configured env variables as in tutorial, there is step in yml:

-name: Publish with Gradle
run: ./gradlew publish
env:
GPR\_USER: augur
GPR\_API\_KEY: ${{ secrets.GITHUB_TOKEN }}

But I’m keep getting

Execution failed for task ':publishGprPublicationToGitHubPackagesRepository'.


> Failed to publish publication 'gpr' to repository 'GitHubPackages'

> Task :publishGprPublicationToGitHubPackagesRepository FAILED

...

maven-metadata.xml'. Received status code 400 from server: Bad Request

Similar topic:
https://github.community/t5/GitHub-API-Development-and/GitHub-Package-Registry-NuGet-400-Bad-Request/td-p/29391/page/2
There, @eoflaoe  said that problem was in credentials, but in the last post @sappenin told that recently he started getting 400 regardless of credentials.

May it be some global issue?

6 Likes