4
4
push :
5
5
branches :
6
6
- master
7
- - github-tools-fix- fossa
7
+ - chore/ fossa-workflow
8
8
9
9
defaults :
10
10
run :
@@ -16,28 +16,19 @@ jobs:
16
16
steps :
17
17
- name : Checkout
18
18
uses : actions/checkout@v2
19
- - name : Fossa init
19
+ - name : Download fossa cli
20
20
run : |-
21
- curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
22
- fossa init
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
23
27
- name : Set env
24
28
run : echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
25
29
- name : Configuration
26
30
run : |-
27
31
sed -i "${line_number}s|.*| project: [email protected] :${GITHUB_REPOSITORY}.git|" .fossa.yml
28
- sed -i '$d' .fossa.yml
29
- echo -e "analyze:\n modules:\n - name: discovery\n type: go\n target: github.com/netlify/netlify-commons/discovery\n path: ./discovery" >> .fossa.yml
30
- echo -e " - name: graceful\n type: go\n target: github.com/netlify/netlify-commons/graceful\n path: ./graceful" >> .fossa.yml
31
- echo -e " - name: http\n type: go\n target: github.com/netlify/netlify-commons/http\n path: ./http" >> .fossa.yml
32
- echo -e " - name: messaging\n type: go\n target: github.com/netlify/netlify-commons/messaging\n path: ./messaging" >> .fossa.yml
33
- echo -e " - name: metriks\n type: go\n target: github.com/netlify/netlify-commons/metriks\n path: ./metriks" >> .fossa.yml
34
- echo -e " - name: mongo\n type: go\n target: github.com/netlify/netlify-commons/mongo\n path: ./mongo" >> .fossa.yml
35
- echo -e " - name: nconf\n type: go\n target: github.com/netlify/netlify-commons/nconf\n path: ./nconf" >> .fossa.yml
36
- echo -e " - name: ntoml\n type: go\n target: github.com/netlify/netlify-commons/ntoml\n path: ./ntoml" >> .fossa.yml
37
- echo -e " - name: router\n type: go\n target: github.com/netlify/netlify-commons/router\n path: ./router" >> .fossa.yml
38
- echo -e " - name: server\n type: go\n target: github.com/netlify/netlify-commons/server\n path: ./server" >> .fossa.yml
39
- echo -e " - name: tracing\n type: go\n target: github.com/netlify/netlify-commons/tracing\n path: ./tracing" >> .fossa.yml
40
- echo -e " - name: util\n type: go\n target: github.com/netlify/netlify-commons/util\n path: ./util" >> .fossa.yml
41
32
cat .fossa.yml
42
33
- name : Upload dependencies
43
34
run : fossa analyze --debug
0 commit comments