Skip to content

Commit a0aa129

Browse files
author
Fr4gm3nt3d_sh
committed
Update .github/workflows/llmcodereview.yml
1 parent 574f418 commit a0aa129

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/llmcodereview.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ jobs:
117117
git add report*.html report.html
118118
git commit -m "Add Gemini code report" || echo "No changes to commit"
119119
120+
# Clear any cached credentials
121+
git credential-osxkeychain erase 2>/dev/null || true
122+
git credential reject <<EOF
123+
protocol=https
124+
host=github.com
125+
EOF
126+
120127
# Add remote and fetch the target repo
121128
git remote add pages "https://x-access-token:${GH_PAGES_PAT}@github.com/Mod-Sauce/mod-sauce.github.io.git"
122129
git fetch pages main
@@ -129,5 +136,5 @@ jobs:
129136
git add report.html
130137
git commit --no-edit || true
131138
132-
# Push to the target repo
133-
git push "https://x-access-token:${GH_PAGES_PAT}@github.com/Mod-Sauce/mod-sauce.github.io.git" HEAD:main
139+
# Push to the target repo with explicit credentials
140+
git -c credential.helper= -c credential.helper='!f() { echo "username=x-access-token"; echo "password=${GH_PAGES_PAT}"; }; f' push pages HEAD:main

0 commit comments

Comments
 (0)