From fcc82b753d9562aeaa252a8b99aa962b30ab7b9f Mon Sep 17 00:00:00 2001 From: dustincrogers <42478126+dustincrogers@users.noreply.github.com> Date: Mon, 23 Aug 2021 02:18:06 -0700 Subject: [PATCH] chore: update github actions workflow files for fossa scans to use install users home directory (#621) --- .github/workflows/fossa.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml index 938febc5e..653d7dab8 100644 --- a/.github/workflows/fossa.yml +++ b/.github/workflows/fossa.yml @@ -3,8 +3,8 @@ name: Dependency License Scanning on: push: branches: - - main - - fossa + - master + - chore/fossa-workflow defaults: run: @@ -16,10 +16,14 @@ 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 + 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