Skip to content

Commit c71935a

Browse files
author
dustincrogers
committed
update github actions workflow files for fossa scans to use install users home directory
1 parent 39cf88a commit c71935a

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/fossa.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Dependency License Scanning
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- chore/fossa-workflow
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
jobs:
14+
fossa:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
- name: Download fossa cli
20+
run: |-
21+
mkdir -p $HOME/.local/bin
22+
curl https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash -s -- -b $HOME/.local/bin
23+
echo "$HOME/.local/bin" >> $GITHUB_PATH
24+
25+
- name: Fossa init
26+
run: fossa init
27+
- name: Set env
28+
run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
29+
- name: Configuration
30+
run: |-
31+
sed -i "${line_number}s|.*| project: git@github.com:${GITHUB_REPOSITORY}.git|" .fossa.yml
32+
cat .fossa.yml
33+
- name: Upload dependencies
34+
run: fossa analyze --debug
35+
env:
36+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}

0 commit comments

Comments
 (0)