Skip to content

Commit 64d2948

Browse files
vdicekate-goldenringlann
committed
ci(.github): add fossa.yml and .fossa.yml config
Signed-off-by: Vaughn Dice <[email protected]> Co-authored-by: Kate Goldenring <[email protected]> Co-authored-by: Lann <[email protected]>
1 parent dd6b7b7 commit 64d2948

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.fossa.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: 3
2+
3+
paths:
4+
exclude:
5+
- ./templates/**

.github/workflows/fossa.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: fossa
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- v*
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
fossa-scan:
14+
# Don't attempt to run FOSSA on forks or on PRs from forks (no access to GH secrets)
15+
if: ${{ github.repository_owner == 'spinframework' && !github.event.pull_request.head.repo.fork }}
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
steps:
20+
- name: "Checkout code"
21+
uses: actions/checkout@v4
22+
23+
- name: "Run FOSSA Scan"
24+
uses: fossas/[email protected] # Use a specific version if locking is preferred
25+
env:
26+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
27+
with:
28+
api-key: ${{ secrets.FOSSA_API_KEY }}

0 commit comments

Comments
 (0)