Skip to content

Commit af985ae

Browse files
Enable FOSSA scanning for the repo (#2347)
* FOSSA scanning enabled for the repo Signed-off-by: Ihor Dvoretskyi <ihor@linux.com> * Comments addressed Signed-off-by: Ihor Dvoretskyi <ihor@linux.com> * FOSSA config updated Signed-off-by: Ihor Dvoretskyi <ihor@linux.com> Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
1 parent b5b2d79 commit af985ae

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/fossa.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: FOSSA
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-go@v2
14+
with:
15+
go-version: "^1.14.x"
16+
- run: go version
17+
# Runs a set of commands to initialize and analyze with FOSSA
18+
- name: run FOSSA analysis
19+
env:
20+
# FOSSA Push-Only API Token
21+
FOSSA_API_KEY: '304657e2357ba57b416b94e6b119131b'
22+
run: |
23+
export GOPATH=$HOME/go
24+
export PATH=$PATH:$(go env GOPATH)/bin
25+
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
26+
fossa init
27+
fossa analyze

0 commit comments

Comments
 (0)