Skip to content
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

Credentials error for tasks in perform-release.yml #25

Closed
sjohnr opened this issue Mar 8, 2024 · 0 comments
Closed

Credentials error for tasks in perform-release.yml #25

sjohnr opened this issue Mar 8, 2024 · 0 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@sjohnr
Copy link
Collaborator

sjohnr commented Mar 8, 2024

The env variable TOKEN is missing from the environment for tasks in the next-development-version job of perform-release.yml, causing a 401 with "Bad credentials" error from GitHub. For example:

Run ./gradlew createSaganRelease -PnextVersion=$VERSION -PgitHubAccessToken=$TOKEN
> Task :buildSrc:compileJava UP-TO-DATE
> Task :buildSrc:compileGroovy UP-TO-DATE
> Task :buildSrc:pluginDescriptors UP-TO-DATE
> Task :buildSrc:processResources UP-TO-DATE
> Task :buildSrc:classes UP-TO-DATE
> Task :buildSrc:jar UP-TO-DATE
> Task :buildSrc:assemble UP-TO-DATE
> Task :buildSrc:pluginUnderTestMetadata UP-TO-DATE
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:validatePlugins UP-TO-DATE
> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build UP-TO-DATE
> Task :createSaganRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':createSaganRelease'.
> 401[{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}]
@sjohnr sjohnr added the type: bug A general bug label Mar 8, 2024
@sjohnr sjohnr added this to the 1.0.2 milestone Mar 8, 2024
@sjohnr sjohnr self-assigned this Mar 8, 2024
@sjohnr sjohnr closed this as completed in b2277b7 Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant