From f6ba446331fb72b81d8ea6cb058e186b81b3ba18 Mon Sep 17 00:00:00 2001 From: Nico Schapeler <38372048+cryptopapi997@users.noreply.github.com> Date: Wed, 6 Dec 2023 20:17:19 +0800 Subject: [PATCH 1/3] Fix CI --- .github/workflows/vkey.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/vkey.yaml b/.github/workflows/vkey.yaml index 9ee097b..2291483 100644 --- a/.github/workflows/vkey.yaml +++ b/.github/workflows/vkey.yaml @@ -12,10 +12,16 @@ jobs: - uses: actions/checkout@v2 with: persist-credentials: false + - id: create_token + uses: tibdex/github-app-token@v2 + with: + # use the private key and app id secret that we created in the Github App section + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Reconfigure git to use HTTP authentication - run: > - git config --global url."https://${{ secrets.GH_SECRET }}@github.com/".insteadOf - https://github.com/ + # Fix our git override using the generated token from the create_token step + use the "x-access-token". + run: | + git config --global url."https://x-access-token:${{ steps.create_token.outputs.token }}@github.com".insteadOf ssh://git@github.com - name: Fetch and compare vkeys run: | sh ./vkey.sh send_quadra temp2/send_quadra From 67aa43db5003de5a154d6197c214040fcc6f2307 Mon Sep 17 00:00:00 2001 From: Nico Schapeler <38372048+cryptopapi997@users.noreply.github.com> Date: Wed, 6 Dec 2023 20:20:04 +0800 Subject: [PATCH 2/3] Update vkey.yaml --- .github/workflows/vkey.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vkey.yaml b/.github/workflows/vkey.yaml index 2291483..6d2e026 100644 --- a/.github/workflows/vkey.yaml +++ b/.github/workflows/vkey.yaml @@ -21,7 +21,7 @@ jobs: - name: Reconfigure git to use HTTP authentication # Fix our git override using the generated token from the create_token step + use the "x-access-token". run: | - git config --global url."https://x-access-token:${{ steps.create_token.outputs.token }}@github.com".insteadOf ssh://git@github.com + git config --global url."https://x-access-token:${{ steps.create_token.outputs.token }}@github.com".insteadOf https://github.com/ - name: Fetch and compare vkeys run: | sh ./vkey.sh send_quadra temp2/send_quadra From 15e8fef03610acc21cd84dc46fe09c39509859fd Mon Sep 17 00:00:00 2001 From: Nico Schapeler <38372048+cryptopapi997@users.noreply.github.com> Date: Wed, 6 Dec 2023 20:20:52 +0800 Subject: [PATCH 3/3] Update vkey.yaml --- .github/workflows/vkey.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vkey.yaml b/.github/workflows/vkey.yaml index 6d2e026..7a62d0f 100644 --- a/.github/workflows/vkey.yaml +++ b/.github/workflows/vkey.yaml @@ -21,7 +21,7 @@ jobs: - name: Reconfigure git to use HTTP authentication # Fix our git override using the generated token from the create_token step + use the "x-access-token". run: | - git config --global url."https://x-access-token:${{ steps.create_token.outputs.token }}@github.com".insteadOf https://github.com/ + git config --global url."https://x-access-token:${{ steps.create_token.outputs.token }}@github.com".insteadOf https://github.com - name: Fetch and compare vkeys run: | sh ./vkey.sh send_quadra temp2/send_quadra