From 2651f4652465b0d3ebc29060d05644a54c5b4c0c Mon Sep 17 00:00:00 2001 From: Stuart Mumford Date: Tue, 12 Nov 2024 22:22:02 +0000 Subject: [PATCH] Use workflow token --- .github/workflows/pull_from_upstream.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_from_upstream.yml b/.github/workflows/pull_from_upstream.yml index cfe62be..00b5058 100644 --- a/.github/workflows/pull_from_upstream.yml +++ b/.github/workflows/pull_from_upstream.yml @@ -21,8 +21,8 @@ jobs: - name: Set up git run: | - git config --global user.name "${{ secrets.GITHUB_ACTOR }}" - git config --global user.email "${{ secrets.GITHUB_ACTOR }}@users.noreply.github.com" + git config --global user.name "${{ github.github_actor }}" + git config --global user.email "${{ github.github_actor }}@users.noreply.github.com" - name: Pull from OpenAstronomy/github-actions-workflows main branch run: | @@ -33,3 +33,5 @@ jobs: - name: Push changes to the target repository run: | git push origin main + env: + GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}