From 90639ed7c850bbefb5f7f4a1f2a993f4143f303b Mon Sep 17 00:00:00 2001 From: Econa77 Date: Tue, 10 Oct 2023 07:28:03 +0900 Subject: [PATCH] Disable Danger in cases where permissions cannot be passed to `GITHUB_TOKEN` (#62) --- .github/workflows/Danger.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Danger.yml b/.github/workflows/Danger.yml index 137f5da..fec96b5 100644 --- a/.github/workflows/Danger.yml +++ b/.github/workflows/Danger.yml @@ -4,11 +4,11 @@ on: push: branches: - master -permissions: - pull-requests: write jobs: danger: runs-on: macos-13 + # https://github.com/danger/danger/issues/1103 + if: (github.event.pull_request.head.repo.fork == false) steps: - uses: actions/checkout@v4 with: