File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Dependency License Scanning
2+
3+ on :
4+ push :
5+ branches :
6+ - chore/fossa-workflow
7+ - main
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@v2
19+ - name : Download fossa cli
20+ run : |-
21+ curl -L https://github.com/fossas/fossa-cli/releases/download/v1.1.2/fossa-cli_1.1.2_linux_amd64.tar.gz > fossa-cli.tar.gz
22+ tar -xvzf fossa-cli.tar.gz
23+ mkdir -p $HOME/.local/bin
24+ echo "$HOME/.local/bin" >> $GITHUB_PATH
25+ mv fossa $HOME/.local/bin/fossa
26+ - name : Fossa init
27+ run : fossa init
28+ - name : Set env
29+ run : echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
30+ - name : Configuration
31+ run : |-
32+ sed -i "${line_number}s|.*| project: [email protected] :${GITHUB_REPOSITORY}.git|" .fossa.yml 33+ cat .fossa.yml
34+ - name : Upload dependencies
35+ run : fossa analyze --debug
36+ env :
37+ FOSSA_API_KEY : ${{ secrets.FOSSA_API_KEY }}
38+
You can’t perform that action at this time.
0 commit comments