File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,13 @@ jobs:
1313 - uses : actions/setup-go@v2
1414 with :
1515 go-version : " ^1.15.x"
16- - run : go version
17- # Runs a set of commands to initialize and analyze with FOSSA
18- - name : run FOSSA analysis
19- env :
16+ - name : Add GOPATH to GITHUB_ENV
17+ run : echo "GOPATH=$(go env GOPATH)" >>"$GITHUB_ENV"
18+ - name : Add GOPATH to GITHUB_PATH
19+ run : echo "$GOPATH/bin" >>"$GITHUB_PATH"
20+ - name : Run FOSSA scan and upload build data
21+ uses : fossa-contrib/fossa-action@v1
22+ with :
2023 # FOSSA Push-Only API Token
21- FOSSA_API_KEY : ' 5ee8bf422db1471e0bcf2bcb289185de'
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
24+ fossa-api-key : 5ee8bf422db1471e0bcf2bcb289185de
25+ github-token : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments