Skip to content

Commit d4b4e33

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 d4b4e33

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.fossa.yml

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

.github/workflows/fossa.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
permissions: {}
13+
14+
jobs:
15+
fossa-scan:
16+
if: github.repository_owner == 'spinframework' # FOSSA is not intended to run on forks.
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
steps:
21+
- name: "Checkout code"
22+
uses: actions/checkout@v4
23+
24+
- name: "Run FOSSA Scan"
25+
uses: fossas/[email protected] # Use a specific version if locking is preferred
26+
env:
27+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
28+
with:
29+
api-key: ${{ env.FOSSA_API_KEY }}

0 commit comments

Comments
 (0)