File tree 1 file changed +36
-0
lines changed
1 file changed +36
-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
+ - master
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@v2
19
+ - name : Download fossa cli
20
+ run : |-
21
+ mkdir -p $HOME/.local/bin
22
+ curl https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash -s -- -b $HOME/.local/bin
23
+ echo "$HOME/.local/bin" >> $GITHUB_PATH
24
+
25
+ - name : Fossa init
26
+ run : fossa init
27
+ - name : Set env
28
+ run : echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
29
+ - name : Configuration
30
+ run : |-
31
+ sed -i "${line_number}s|.*| project: git@github.com:${GITHUB_REPOSITORY}.git|" .fossa.yml
32
+ cat .fossa.yml
33
+ - name : Upload dependencies
34
+ run : fossa analyze --debug
35
+ env :
36
+ FOSSA_API_KEY : ${{ secrets.FOSSA_API_KEY }}
You can’t perform that action at this time.
0 commit comments