File tree Expand file tree Collapse file tree 1 file changed +3
-24
lines changed Expand file tree Collapse file tree 1 file changed +3
-24
lines changed Original file line number Diff line number Diff line change 8
8
- ' **.md'
9
9
- ' LICENSE'
10
10
11
- defaults :
12
- run :
13
- shell : bash
14
-
15
- env :
16
- FOSSA_VER : 1.1.6
17
- FOSSA_URL : https://github.com/fossas/fossa-cli/releases/download
18
-
19
11
jobs :
20
12
21
13
scan :
@@ -24,23 +16,10 @@ jobs:
24
16
steps :
25
17
- name : Checkout Repository
26
18
uses : actions/checkout@v2
27
- - name : Determine Go version from go.mod
28
- run : echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
29
- - name : Setup Golang Environment
30
- uses : actions/setup-go@v2
19
+ - name : Scan
20
+ uses : fossas/fossa-action@v1
31
21
with :
32
- go-version : ${{ env.GO_VERSION }}
33
- - name : Configure Fossa CLI
34
- run : |
35
- wget ${{ env.FOSSA_URL }}/v${{ env.FOSSA_VER }}/fossa-cli_${{ env.FOSSA_VER }}_linux_amd64.tar.gz
36
- tar xzf fossa-cli_${{ env.FOSSA_VER }}_linux_amd64.tar.gz
37
- ./fossa init
38
- - name : Run License Scan
39
- env :
40
- FOSSA_API_KEY : ${{ secrets.FOSSA_TOKEN }}
41
- GO111MODULE : on
42
- GOPATH : /home/runner/go
43
- run : ./fossa analyze -t ${GITHUB_REPOSITORY#*/} -b ${GITHUB_REF##*/}
22
+ api-key : ${{ secrets.FOSSA_TOKEN }}
44
23
45
24
notify :
46
25
name : Notify
You can’t perform that action at this time.
0 commit comments