From 906d0e30b6d9c63b7df13e05b310368cd97372e8 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Thu, 27 Feb 2025 22:37:34 -0800 Subject: [PATCH] Try to auth for push using HTTP header --- .github/workflows/update.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 9eb6767dd..f25affde3 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -79,14 +79,9 @@ jobs: - name: Rebase and Push run: | source ./ci/lib/setup-git.sh - git -C $GITHUB_WORKSPACE/nur-combined remote set-url origin https://${API_TOKEN_GITHUB:-git}@github.com/nix-community/nur-combined.git git -C $GITHUB_WORKSPACE/nur-combined fetch origin master git -C $GITHUB_WORKSPACE/nur-combined pull --rebase origin master - git -C $GITHUB_WORKSPACE/nur-combined push origin master - env: - GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }} - API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} - + git -C $GITHUB_WORKSPACE/nur-combined -c http.extraheader="Authorization: Bearer ${{ steps.get_workflow_token.outputs.token }}" push origin master update_search: runs-on: ubuntu-latest @@ -126,10 +121,6 @@ jobs: - name: Rebase and Push run: | source ./ci/lib/setup-git.sh - git -C $GITHUB_WORKSPACE/nur-search remote set-url origin https://${API_TOKEN_GITHUB:-git}@github.com/nix-community/nur-search.git git -C $GITHUB_WORKSPACE/nur-search fetch origin master git -C $GITHUB_WORKSPACE/nur-search pull --rebase origin master - git -C $GITHUB_WORKSPACE/nur-search push origin master - env: - GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }} - API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} + git -C $GITHUB_WORKSPACE/nur-search -c http.extraheader="Authorization: Bearer ${{ steps.get_workflow_token.outputs.token }}" push origin master