Skip to content

Commit 436ec38

Browse files
authored
chore: manually install fossa (#579)
1 parent 7f91eca commit 436ec38

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/fossa.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- chore/fossa-workflow # convenience branch for future fossa tweaks
78

89
defaults:
910
run:
@@ -15,10 +16,15 @@ 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+
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
2228
- name: Set env
2329
run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
2430
- name: Configuration

0 commit comments

Comments
 (0)