-
Notifications
You must be signed in to change notification settings - Fork 58
32 lines (28 loc) · 927 Bytes
/
fossa.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Dependency License Scanning
on:
push:
branches:
- main
- chore/fossa-workflow
defaults:
run:
shell: bash
jobs:
fossa:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download fossa cli
run: |-
mkdir -p $HOME/.local/bin
curl https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash -s -- -b $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Configuration
run: |-
echo -e "version: 3\nproject:\n id: [email protected]:${GITHUB_REPOSITORY}.git\npaths:\n exclude:\n - ./packages/build/tests\n - ./packages/config/tests" > .fossa.yml
cat .fossa.yml
- name: Upload dependencies
run: FOSSA_TELEMETRY_SCOPE=off fossa analyze --debug
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}