Skip to content

🔧 fix(ci): restore git credentials and remove workaround#335

Merged
gaborbernat merged 1 commit into
mainfrom
fix/release-persist-credentials
Mar 31, 2026
Merged

🔧 fix(ci): restore git credentials and remove workaround#335
gaborbernat merged 1 commit into
mainfrom
fix/release-persist-credentials

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Mar 31, 2026

Copy link
Copy Markdown
Member

The zizmor security tool added persist-credentials: false to the checkout step, requiring a git remote set-url workaround to restore push capabilities. This workaround exposes the token in process listings and shell history, which is worse for security than the original credential persistence.

Removing both persist-credentials: false and the workaround simplifies the workflow while maintaining security. ✨ The artipacked warning is suppressed with an inline ignore because it's a false positive—this job never uploads artifacts that could leak credentials. Using the default credential persistence is the intended design for jobs that need to push.

This change only affects the mirror workflow. The approach aligns with GitHub's recommended practice for jobs requiring repository write access.

@gaborbernat gaborbernat changed the title Remove persist-credentials: false and git remote workaround 🔧 fix(ci): restore git credentials and remove workaround Mar 31, 2026
@gaborbernat gaborbernat merged commit 25e3749 into main Mar 31, 2026
5 checks passed
@gaborbernat gaborbernat deleted the fix/release-persist-credentials branch March 31, 2026 21:10
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