From 5177d6ffd88b70b0e2a017ea0114081d684335df Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Sun, 7 Jun 2020 09:39:53 +0200 Subject: [PATCH] Update lint.yml (#3464) --- .github/workflows/lint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b2884ed1a..54ca5cca6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,5 +11,8 @@ jobs: - uses: actions/checkout@v2 - name: abaplint uses: abaplint/actions-abaplint@master + # GITHUB_TOKEN in forked repositories is read-only + # https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request + if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}