From 67d7b07da851447af8c4d8247e5bfd7df85a5df3 Mon Sep 17 00:00:00 2001 From: oranges Date: Sat, 22 Feb 2020 12:49:05 +1300 Subject: [PATCH] Set the actor explicitly for the access token used (#49490) The push action does `https://${GITHUB_ACTOR}:${INPUT_GITHUB_TOKEN}@github.com/${REPOSITORY}.git"` as the repo, so if we are to use a Personal Access Token (PAT) generated by the comfyorange user as the access token for pushing, we need to also use them as the actor for the push --- .github/workflows/autobuild_tgui.yml | 2 ++ .github/workflows/compile_changelogs.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/autobuild_tgui.yml b/.github/workflows/autobuild_tgui.yml index 226ea2b7cee..7be294b00ed 100644 --- a/.github/workflows/autobuild_tgui.yml +++ b/.github/workflows/autobuild_tgui.yml @@ -32,5 +32,7 @@ jobs: git commit -m "Automatic TGUI Rebuild [ci skip]" -a || true - name: Push Artifacts uses: ad-m/github-push-action@master + env: + GITHUB_ACTOR: comfyorange with: github_token: ${{ secrets.GITHUB_MASTER_KEY }} diff --git a/.github/workflows/compile_changelogs.yml b/.github/workflows/compile_changelogs.yml index 4894870752b..fb732d5d3cf 100644 --- a/.github/workflows/compile_changelogs.yml +++ b/.github/workflows/compile_changelogs.yml @@ -32,5 +32,7 @@ jobs: git commit -m "Automatic changelog compile [ci skip]" -a || true - name: "Push" uses: ad-m/github-push-action@master + env: + GITHUB_ACTOR: comfyorange with: github_token: ${{ secrets.GITHUB_MASTER_KEY }}