Skip to content

Conversation

@elithrar
Copy link
Contributor

@elithrar elithrar commented Jan 2, 2026

Fixes #5827 - although the official action does NOT use v6 yet, this was an easy fix and I was bored...

actions/checkout@v6 changed credential storage from .git/config to a separate file using includeIf.gitdir. This fix handles the case where the git config doesn't exist.

  • Use .nothrow() on git config command to handle v6
  • Only unset config if it exists

@elithrar elithrar force-pushed the fix/checkout-v6-compat branch from d8306be to 8c78ade Compare January 2, 2026 18:40
@rekram1-node rekram1-node merged commit 6e68ea0 into anomalyco:dev Jan 2, 2026
2 checks passed
@elithrar elithrar deleted the fix/checkout-v6-compat branch January 2, 2026 20:31
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.

GitHub action incompatible with actions/checkout@v6

2 participants