File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments