Skip to content

Commit

Permalink
chore: manually install fossa (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Aug 2, 2021
1 parent 7f91eca commit 436ec38
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- chore/fossa-workflow # convenience branch for future fossa tweaks

defaults:
run:
Expand All @@ -15,10 +16,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fossa init
- name: Download fossa cli
run: |-
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
fossa init
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
tar -xvzf fossa-cli.tar.gz
mkdir -p $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
mv fossa $HOME/.local/bin/fossa
- name: Fossa init
run: fossa init
- name: Set env
run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
- name: Configuration
Expand Down

0 comments on commit 436ec38

Please sign in to comment.