Skip to content

Commit 1c8299c

Browse files
chore: fix fossa workflow
1 parent 3318807 commit 1c8299c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/fossa.yml

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

89
defaults:
@@ -14,11 +15,14 @@ jobs:
1415
runs-on: ubuntu-latest
1516
steps:
1617
- name: Checkout
17-
uses: actions/checkout@v2
18-
- name: Fossa init
18+
uses: actions/checkout@v3
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+
- name: Fossa init
25+
run: fossa init
2226
- name: Set env
2327
run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
2428
- name: Configuration

0 commit comments

Comments
 (0)