From 931ce68a32b91cb92891666a2cea75a298872d13 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Wed, 17 Jan 2024 12:16:51 +0100 Subject: [PATCH] Add pull_request_target trigger to lint workflow Signed-off-by: Tilman Vatteroth --- .github/workflows/lint.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 684b9c5ad..26e40e5b6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,9 +7,14 @@ name: Lint and check format on: push: branches: [ develop ] + pull_request_target: + branches: [ develop ] pull_request: branches: [ develop ] +permissions: + contents: read + env: NODEJS_VERSION: 20 @@ -17,6 +22,7 @@ jobs: lint: runs-on: ubuntu-latest name: Lint files and check formatting + if: "(github.event_name == 'pull_request_target') == github.event.pull_request.head.repo.fork" steps: - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1