Skip to content

Commit 04e0eb8

Browse files
authored
chore: create fossa workflow (#9)
* chore: Create fossa workflow * Update fossa.yml
1 parent ebe8880 commit 04e0eb8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/fossa.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Dependency License Scanning
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- chore/fossa-workflow
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
jobs:
14+
fossa:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Download fossa cli
20+
run: |-
21+
mkdir -p $HOME/.local/bin
22+
curl https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash -s -- -b $HOME/.local/bin
23+
echo "$HOME/.local/bin" >> $GITHUB_PATH
24+
25+
- name: Configuration
26+
run: |-
27+
echo -e "version: 3\nproject:\n id: git@github.com:${GITHUB_REPOSITORY}.git\npaths:\n exclude:\n - ./tests" > .fossa.yml
28+
cat .fossa.yml
29+
- name: Upload dependencies
30+
run: FOSSA_TELEMETRY_SCOPE=off fossa analyze --debug
31+
env:
32+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}

0 commit comments

Comments
 (0)