Skip to content

Commit 0fa046c

Browse files
author
“deep-splunk”
committed
chnage
1 parent 5337cb0 commit 0fa046c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/ci_build_test.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI Build Test
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches-ignore:
66
- /^release\/.*/
77
- master
@@ -33,8 +33,7 @@ jobs:
3333
- name: Setup Action
3434
uses: actions/checkout@v3
3535
with:
36-
ref: ${{github.event.pull_request.head.ref}}
37-
repository: ${{github.event.pull_request.head.repo.full_name}}
36+
ref: ${{github.event.pull_request.head.sha}}
3837
- name: run fossa anlyze and create report
3938
run: |
4039
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
@@ -63,7 +62,7 @@ jobs:
6362
- name: Setup Action
6463
uses: actions/checkout@v3
6564
with:
66-
ref: ${{github.event.pull_request.head.ref}}
65+
ref: ${{github.event.pull_request.head.sha}}
6766
repository: ${{github.event.pull_request.head.repo.full_name}}
6867
- name: Semgrep
6968
id: semgrep
@@ -80,7 +79,7 @@ jobs:
8079
- name: Setup Action
8180
uses: actions/checkout@v2
8281
with:
83-
ref: ${{github.event.pull_request.head.ref}}
82+
ref: ${{github.event.pull_request.head.sha}}
8483
repository: ${{github.event.pull_request.head.repo.full_name}}
8584

8685
- name: Get maven dependencies
@@ -151,7 +150,7 @@ jobs:
151150
- name: Setup Action
152151
uses: actions/checkout@v2
153152
with:
154-
ref: ${{github.event.pull_request.head.ref}}
153+
ref: ${{github.event.pull_request.head.sha}}
155154
repository: ${{github.event.pull_request.head.repo.full_name}}
156155

157156
- name: Install Splunk

0 commit comments

Comments
 (0)