Skip to content

Commit f5e5ec7

Browse files
committed
Replace trigger for FOSSA to PR target
1 parent 7d65c31 commit f5e5ec7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/fossa-analyze.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
name: Execute FOSSA analyze action
22

33
on:
4-
workflow_run:
5-
workflows: ['Check the PR']
6-
types: [completed]
4+
pull_request_target:
5+
branches:
6+
- main
77

88
jobs:
99
dump-unicode-data:
1010
uses: ./.github/workflows/unicode-dump.yml
1111
fossa-scan:
1212
runs-on: ubuntu-latest
13-
if: github.repository == 'OptimumCode/json-schema-validator' && github.event.workflow_run.conclusion == 'success'
1413
needs:
1514
- dump-unicode-data
1615
steps:
1716
- name: 'Checkout Repository'
1817
uses: actions/checkout@v4
1918
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 }}
2221
- uses: actions/setup-java@v4
2322
with:
2423
distribution: temurin
@@ -47,5 +46,5 @@ jobs:
4746
- uses: fossas/fossa-action@v1
4847
with:
4948
api-key: ${{secrets.FOSSA_API_KEY}}
50-
branch: ${{ github.event.workflow_run.head_branch }}
49+
branch: ${{ github.event.pull_request.head.ref }}
5150
run-tests: true

0 commit comments

Comments
 (0)