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