chore: update github actions workflow files for fossa scans to use install users home directory (#5728)

This commit is contained in:
dustincrogers 2021-08-20 02:38:58 -07:00 committed by GitHub
parent 992f6c865d
commit 6fe3211292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ on:
push:
branches:
- master
- chore/test_fossa
- chore/fossa-workflow
defaults:
run:
@ -16,12 +16,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update fossa permissions
run: sudo chmod -R 755 /usr/local/bin
- 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
mkdir -p $HOME/.local/bin
curl https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash -s -- -b $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
- 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