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: push:
branches: branches:
- master - master
- chore/test_fossa - chore/fossa-workflow
defaults: defaults:
run: run:
@ -16,12 +16,14 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Update fossa permissions - name: Download fossa cli
run: sudo chmod -R 755 /usr/local/bin
- name: Fossa init
run: |- run: |-
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash mkdir -p $HOME/.local/bin
fossa init 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 - name: Set env
run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
- name: Configuration - name: Configuration