Skip to content

Commit ddb38f3

Browse files
chore: patch fossa install process (#281)
1 parent a0b86ec commit ddb38f3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/fossa.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- chore/fossa-workflow
78

89
defaults:
910
run:
@@ -15,10 +16,14 @@ jobs:
1516
steps:
1617
- name: Checkout
1718
uses: actions/checkout@v2
18-
- name: Fossa init
19+
- name: Download fossa cli
1920
run: |-
20-
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
21-
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
2227
- name: Set env
2328
run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
2429
- name: Configuration

0 commit comments

Comments
 (0)