try esm action

This commit is contained in:
Pullfrog Action
2025-11-06 19:00:07 -05:00
parent 5a21d40d27
commit 7ef44eb254
9 changed files with 86 additions and 410 deletions
+8
View File
@@ -50,8 +50,16 @@ export function setupGitConfig(): void {
/**
* Setup git authentication using GitHub token
* Only runs in GitHub Actions environment to avoid breaking local git remotes
*/
export function setupGitAuth(githubToken: string, repoContext: RepoContext): void {
// Only set up git auth in GitHub Actions environment
// In local testing, this would overwrite the real git remote with fake credentials
if (!process.env.GITHUB_ACTIONS) {
log.info("⚠️ Skipping git authentication setup (not in GitHub Actions)");
return;
}
log.info("🔐 Setting up git authentication...");
// Remove existing git auth headers that actions/checkout might have set