From a999515a738d15b5140e963d0a01e378d8efc554 Mon Sep 17 00:00:00 2001 From: Jane Chu <7559015+janechu@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:28:20 -0700 Subject: [PATCH] Added tokens for github pages workflow --- .github/workflows/cd-gh-pages.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/cd-gh-pages.yml b/.github/workflows/cd-gh-pages.yml index b37d0cf3a1d..b64a5d353f3 100644 --- a/.github/workflows/cd-gh-pages.yml +++ b/.github/workflows/cd-gh-pages.yml @@ -3,6 +3,10 @@ name: Deploy GitHub Pages on: workflow_dispatch: +env: + GITHUB_SERVICE_USER: "Microsoft FAST Builds" + GITHUB_SERVICE_EMAIL: "fastsvc@microsoft.com" + jobs: build: runs-on: ubuntu-latest @@ -14,6 +18,12 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 + token: ${{ secrets.GH_TOKEN }} + + - name: Set Git User + run: | + git config --global user.name "${{ env.GITHUB_SERVICE_USER }}" + git config --global user.email "${{ env.GITHUB_SERVICE_EMAIL }}" - name: Get yarn cache directory path id: yarn-cache-dir-path