Skip to content

Commit 6c41bcf

Browse files
committed
ci(fossa): add test step
Signed-off-by: Vaughn Dice <[email protected]>
1 parent ed79598 commit 6c41bcf

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/fossa.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
# Don't attempt to run FOSSA on forks
1515
if: github.repository_owner == 'spinframework'
1616
runs-on: ubuntu-latest
17+
env:
18+
FOSSA_API_KEY: d21f74dd762b95fa3e318b70e8428ca5 # This is a push-only token that is safe to be exposed
1719
permissions:
1820
contents: read
1921
steps:
@@ -22,4 +24,13 @@ jobs:
2224
- name: "Run FOSSA Scan"
2325
uses: fossas/[email protected]
2426
with:
25-
api-key: d21f74dd762b95fa3e318b70e8428ca5 # This is a push-only token that is safe to be exposed
27+
api-key: ${{ env.FOSSA_API_KEY }}
28+
29+
- name: "Run FOSSA Test"
30+
if: github.event_name == 'pull_request'
31+
uses: fossas/[email protected]
32+
with:
33+
api-key: ${{ env.FOSSA_API_KEY }}
34+
run-tests: true
35+
# TODO: uncomment once we have scans from the main branch
36+
# test-diff-revision: ${{ github.event.pull_request.base.sha }}

0 commit comments

Comments
 (0)