-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ref.: cncf/foundation#109 Signed-off-by: Ihor Dvoretskyi <ihor@linux.com>
- Loading branch information
1 parent
c7ff9cc
commit 69889de
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: FOSSA | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "^1.14.x" | ||
- run: go version | ||
# Runs a set of commands to initialize and analyze with FOSSA | ||
- name: run FOSSA analysis | ||
env: | ||
# FOSSA Push-Only API Token | ||
FOSSA_API_KEY: 'ff918866d6334ad92c36b407923205b4' | ||
run: | | ||
export GOPATH=$HOME/go | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash | ||
fossa init | ||
fossa analyze |