From 2314f824cc6179571a2fcb8a1c83942ee5a3fad2 Mon Sep 17 00:00:00 2001 From: iosmanthus Date: Thu, 17 Feb 2022 16:38:58 +0800 Subject: [PATCH 1/2] CI: enable spotbugs for pull request for master or push to master Signed-off-by: iosmanthus --- .github/workflows/spotbugs.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spotbugs.yml b/.github/workflows/spotbugs.yml index 1f6d7646dab..cfc6714165c 100644 --- a/.github/workflows/spotbugs.yml +++ b/.github/workflows/spotbugs.yml @@ -1,5 +1,12 @@ name: Spotbugs -on: [push] + +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: build: From 93d6693c7aa86cd758288d526bec5bfe7dd4c5a4 Mon Sep 17 00:00:00 2001 From: iosmanthus Date: Thu, 17 Feb 2022 16:58:04 +0800 Subject: [PATCH 2/2] try to use pull_request_target Signed-off-by: iosmanthus --- .github/workflows/spotbugs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spotbugs.yml b/.github/workflows/spotbugs.yml index cfc6714165c..0f47965300d 100644 --- a/.github/workflows/spotbugs.yml +++ b/.github/workflows/spotbugs.yml @@ -4,7 +4,7 @@ on: push: branches: - master - pull_request: + pull_request_target: branches: - master