From 16d14f425f1452e9117b5a23af24bc93f570541a Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Fri, 13 Oct 2023 20:53:23 -0700 Subject: [PATCH] Avoid using MATZBOT_GITHUB_TOKEN for pull requests --- .github/workflows/check_misc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml index ae60dcdd75e75f..cd8ae43ff81ea7 100644 --- a/.github/workflows/check_misc.yml +++ b/.github/workflows/check_misc.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 with: - token: ${{ secrets.MATZBOT_GITHUB_TOKEN }} + token: ${{ (github.repository == 'ruby/ruby' && !startsWith(github.event_name, 'pull')) && secrets.MATZBOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} - uses: ./.github/actions/setup/directories with: