Skip to content

Fix release push: disable persist-credentials when app token is used#18

Merged
arcivanov merged 1 commit intomasterfrom
fix-credential-helper
Mar 28, 2026
Merged

Fix release push: disable persist-credentials when app token is used#18
arcivanov merged 1 commit intomasterfrom
fix-credential-helper

Conversation

@arcivanov
Copy link
Copy Markdown
Member

Summary

  • Upgrade checkout from actions/checkout@v5 to @v6
  • Set persist-credentials to false when release-app-id is provided, preventing the default GITHUB_TOKEN credential helper from overriding the app token during git push
  • When no app is configured, credentials persist as before (no behavior change)

Fixes release pushes failing with GH013: Repository rule violations on repos with branch protection rulesets.

Test plan

  • Release push succeeds on a repo with branch protection and PyBuilder app configured
  • Non-release builds without app credentials are unaffected

@arcivanov arcivanov force-pushed the fix-credential-helper branch from a09a07e to 74b81c2 Compare March 28, 2026 05:31
@arcivanov arcivanov merged commit 2d66d98 into master Mar 28, 2026
124 checks passed
@arcivanov arcivanov deleted the fix-credential-helper branch March 28, 2026 05:37
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