From c65bd242c9d70399f0930ffe10eeaf1334e834da Mon Sep 17 00:00:00 2001 From: Econa77 Date: Wed, 11 Oct 2023 03:36:56 +0900 Subject: [PATCH] Disable Danger in cases where permissions cannot be passed to GITHUB_TOKEN --- .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 52346a9..ed8517c 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: