chore: update github actions workflow files for fossa scans to use install users home directory (#5728)
This commit is contained in:
parent
992f6c865d
commit
6fe3211292
14
.github/workflows/fossa.yml
vendored
14
.github/workflows/fossa.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user