deploy: take the package-write credential from git's credential helper, not ~/.git-token #6
Loading…
Reference in a new issue
No description provided.
Delete branch "bizon-agent/zddc:ci/deploy-credential-helper"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
./deploynow takes its package-write credential from git's credential helper (git credential fillfor theZDDC_FORGEJOhost, the same credentialgit pushuses) instead of~/.git-token.ZDDC_FORGEJO_TOKEN, if set, still wins. CI is unchanged:release-record.shsets it fromPACKAGE_TOKEN../deploystops before touching the registry: "no package-write credential … (check with: git credential fill)".shared/registry-lib.shno longer reads any token file. WithoutZDDC_FORGEJO_TOKEN, reads are anonymous.Tests:
sh .forgejo/scripts/test-release-on-merge.shpasses 21/21 (3 new cases, using a fake helper that answers with the host it was asked about; no real credential is read). A planted bug (taking the username field) turned the first case red. shellcheck -S warning is clean.Not verifiable before a real
./deploy: that the bizon-agent entry in the store has package write.🤖 Generated with Claude Code