Skip to content

Commit 8075630

Browse files
committed
Use fossa-contrib/fossa-action instead
Signed-off-by: Sora Morimoto <sora@morimoto.io>
1 parent f99ce98 commit 8075630

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/fossa.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)