File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Execute FOSSA analyze action
2
2
3
3
on :
4
- workflow_run :
5
- workflows : ['Check the PR']
6
- types : [completed]
4
+ pull_request_target :
5
+ branches :
6
+ - main
7
7
8
8
jobs :
9
9
dump-unicode-data :
10
10
uses : ./.github/workflows/unicode-dump.yml
11
11
fossa-scan :
12
12
runs-on : ubuntu-latest
13
- if : github.repository == 'OptimumCode/json-schema-validator' && github.event.workflow_run.conclusion == 'success'
14
13
needs :
15
14
- dump-unicode-data
16
15
steps :
17
16
- name : ' Checkout Repository'
18
17
uses : actions/checkout@v4
19
18
with :
20
- repository : ${{ github.event.workflow_run.head_repository .full_name }}
21
- ref : ${{ github.event.workflow_run.head_sha }}
19
+ repository : ${{ github.event.pull_request.head.repo .full_name }}
20
+ ref : ${{ github.event.pull_request.head.sha }}
22
21
- uses : actions/setup-java@v4
23
22
with :
24
23
distribution : temurin
47
46
- uses : fossas/fossa-action@v1
48
47
with :
49
48
api-key : ${{secrets.FOSSA_API_KEY}}
50
- branch : ${{ github.event.workflow_run.head_branch }}
49
+ branch : ${{ github.event.pull_request.head.ref }}
51
50
run-tests : true
You can’t perform that action at this time.
0 commit comments