Skip to content

docs: read the packages token from gh in the gradle example, so nobody keeps a pat on disk - #64

Merged
landsman merged 1 commit into
mainfrom
docs/install-gh-token
Nov 9, 2026
Merged

landsman merged 1 commit into
mainfrom
docs/install-gh-token

Conversation

@landsman

@landsman landsman commented Nov 9, 2026

Copy link
Copy Markdown
Owner

The install guide had a consumer paste a classic PAT into ~/.gradle/gradle.properties: a second copy of a GitHub secret that expires and nothing renews. The Gradle example now falls back to gh auth token, read on every build, so setup is one gh auth refresh -s read:packages.

gpr.user / gpr.key still win, for whoever has no gh. Without gh or signed out the helper yields nothing and the build gets GitHub's 401. The user name is a constant because GitHub Packages checks only the token. Maven is unchanged: it has no hook to run a command for a credential.

@landsman
landsman merged commit baebf7d into main Nov 9, 2026
2 checks passed
@landsman
landsman deleted the docs/install-gh-token branch November 9, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant