Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit fab92f8

Browse files
committed
FOSSA workflow added
Signed-off-by: Ihor Dvoretskyi <[email protected]>
1 parent c169268 commit fab92f8

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: '5cda1cd0d5036f6f368682c23a5fdfec'
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)