Skip to content

Commit b2d0e85

Browse files
update github actions workflow files for fossa scans to use install users home directory (#248)
1 parent b05c0b7 commit b2d0e85

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/fossa.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- master
7-
- github-tools-fix-fossa
7+
- chore/fossa-workflow
88

99
defaults:
1010
run:
@@ -16,28 +16,19 @@ jobs:
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v2
19-
- name: Fossa init
19+
- name: Download fossa cli
2020
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
2327
- name: Set env
2428
run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
2529
- name: Configuration
2630
run: |-
2731
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
4132
cat .fossa.yml
4233
- name: Upload dependencies
4334
run: fossa analyze --debug

0 commit comments

Comments
 (0)