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:
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user