From b89c55eca4060381202127293550097f99f87e8d Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Mon, 22 Apr 2024 09:07:28 +0800 Subject: [PATCH] CI: Consistently use github.token instead of secrets.GITHUB_TOKEN --- .github/workflows/check-links.yml | 2 +- .github/workflows/dvc-diff.yml | 2 +- .github/workflows/release-drafter.yml | 2 +- .github/workflows/slash-command-dispatch.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index 524bc6f078d..8e9f58aeff8 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -72,4 +72,4 @@ jobs: title="Link Checker Report on ${{ steps.date.outputs.date }}" gh issue create --title "$title" --body-file ./lychee/out.md env: - GH_TOKEN: ${{secrets.GITHUB_TOKEN}} + GH_TOKEN: ${{ github.token }} diff --git a/.github/workflows/dvc-diff.yml b/.github/workflows/dvc-diff.yml index 443b03e7ab7..5792a5cd64f 100644 --- a/.github/workflows/dvc-diff.yml +++ b/.github/workflows/dvc-diff.yml @@ -52,7 +52,7 @@ jobs: # Report last updated at commit abcdef - name: Generate the image diff report env: - repo_token: ${{ secrets.GITHUB_TOKEN }} + repo_token: ${{ github.token }} run: | echo -e "## Summary of changed images\n" > report.md echo -e "This is an auto-generated report of images that have changed on the DVC remote\n" >> report.md diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 33f571ecdbe..118778439e1 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -23,4 +23,4 @@ jobs: # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml config-name: release-drafter.yml env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/slash-command-dispatch.yml b/.github/workflows/slash-command-dispatch.yml index 9bc6f905ded..7f483528e0d 100644 --- a/.github/workflows/slash-command-dispatch.yml +++ b/.github/workflows/slash-command-dispatch.yml @@ -16,7 +16,7 @@ jobs: - name: Slash Command Dispatch uses: peter-evans/slash-command-dispatch@v4 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ githubu.token }} commands: | format issue-type: pull-request