From 6d18bda835f76407bbff7029ed39214af2fcec8a Mon Sep 17 00:00:00 2001 From: Tim Hess Date: Thu, 2 Apr 2026 08:38:58 -0500 Subject: [PATCH 1/2] fix "fatal: could not read Username for 'https://github.com': No such device or address" --- .github/workflows/keep-alive.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/keep-alive.yml b/.github/workflows/keep-alive.yml index 7170181..446bc16 100644 --- a/.github/workflows/keep-alive.yml +++ b/.github/workflows/keep-alive.yml @@ -81,6 +81,7 @@ jobs: fi git commit --allow-empty -m "$COMMIT_MSG" + git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" git push origin "$branch_name" pr_number=$(gh pr list --head "$branch_name" --state all --json number --jq '.[0].number' 2>/dev/null || echo "") From 92bc05343db29a534349649e813e5c9b927d7d61 Mon Sep 17 00:00:00 2001 From: Tim Hess Date: Thu, 2 Apr 2026 10:57:29 -0500 Subject: [PATCH 2/2] use persist-credentials:true instead of adjusting the origin --- .github/workflows/keep-alive.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/keep-alive.yml b/.github/workflows/keep-alive.yml index 446bc16..5aa78a7 100644 --- a/.github/workflows/keep-alive.yml +++ b/.github/workflows/keep-alive.yml @@ -20,8 +20,6 @@ jobs: steps: - name: Git checkout uses: actions/checkout@v6 - with: - persist-credentials: false - name: Check for recent activity id: check_activity @@ -81,7 +79,6 @@ jobs: fi git commit --allow-empty -m "$COMMIT_MSG" - git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" git push origin "$branch_name" pr_number=$(gh pr list --head "$branch_name" --state all --json number --jq '.[0].number' 2>/dev/null || echo "")