From 0afa81c9d8b05fe626952b38d59cd10039b58c78 Mon Sep 17 00:00:00 2001 From: Fanon Jupkwo Date: Tue, 5 Mar 2024 22:32:32 +0000 Subject: [PATCH] fix: use of pull_request because pull_request_target does not run PR branch see #264 --- .github/workflows/maven.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3c36c3e9..1b1e9aa6 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -6,10 +6,12 @@ name: Java CI with Maven on: push: branches: [ main ] - pull_request_target: - types: [ opened, edited, synchronize, ready_for_review, review_requested, review_request_removed ] + pull_request: branches: [ main ] +permissions: + contents: read + jobs: build: