Skip to content

Commit 527d969

Browse files
awerisaldor007
authored andcommitted
ci: run FOSSA tests on pull request
1 parent f9a205e commit 527d969

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/fossa.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,18 @@ jobs:
1313
fossa-scan:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
17-
- uses: fossas/fossa-action@v1
16+
- uses: actions/checkout@v4
17+
18+
- name: FOSSA Scan
19+
uses: fossas/fossa-action@v1
1820
with:
1921
api-key: ${{ secrets.FOSSA_API_KEY }}
22+
23+
- name: FOSSA Test
24+
uses: fossas/fossa-action@v1
25+
id: fossa-test
26+
if: ${{ github.event_name == 'pull_request' }}
27+
with:
28+
api-key: ${{ secrets.FOSSA_PR_REPORT_API_KEY }}
29+
run-tests: true
30+
test-diff-revision: ${{ github.event.pull_request.base.sha }}

0 commit comments

Comments
 (0)