File tree Expand file tree Collapse file tree 5 files changed +7
-22
lines changed Expand file tree Collapse file tree 5 files changed +7
-22
lines changed Original file line number Diff line number Diff line change @@ -25,20 +25,15 @@ jobs:
25
25
steps :
26
26
- name : Checkout code
27
27
uses : actions/checkout@v4
28
- - name : Get Go Version
29
- run : |
30
- #!/bin/bash
31
- GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
32
- echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
33
28
- name : Set up Go
34
29
uses : actions/setup-go@v5
35
30
with :
36
- go-version : ${{ env.GOVERSION }}
31
+ go-version-file : go.mod
37
32
- name : Run Trivy vulnerability scanner
38
33
uses : aquasecurity/trivy-action@master
39
34
with :
40
35
scan-type : ' fs'
41
- scan-ref : ' .'
36
+ scan-ref : ' .'
42
37
format : ' sarif'
43
38
output : ' trivy-results.sarif'
44
39
- name : Upload Trivy scan results to GitHub Security tab
Original file line number Diff line number Diff line change @@ -28,16 +28,10 @@ jobs:
28
28
with :
29
29
path : dgo
30
30
repository : dgraph-io/dgo
31
- - name : Get Go Version
32
- run : |
33
- #!/bin/bash
34
- cd dgraph
35
- GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
36
- echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
37
31
- name : Set up Go
38
32
uses : actions/setup-go@v5
39
33
with :
40
- go-version : ${{ env.GOVERSION }}
34
+ go-version-file : dgo/go.mod
41
35
- name : Make Linux Build and Docker Image
42
36
run : cd dgraph && make docker-image
43
37
- name : Move dgraph binary to gopath
Original file line number Diff line number Diff line change @@ -20,15 +20,10 @@ jobs:
20
20
runs-on : ubuntu-20.04
21
21
steps :
22
22
- uses : actions/checkout@v4
23
- - name : Get Go Version
24
- run : |
25
- #!/bin/bash
26
- GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
27
- echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
28
23
- name : Setup Go
29
24
uses : actions/setup-go@v5
30
25
with :
31
- go-version : ${{ env.GOVERSION }}
26
+ go-version-file : go.mod
32
27
- name : golang-lint
33
28
env :
34
29
# prevent OOM
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
module github.com/dgraph-io/dgo/v240
2
2
3
- go 1.22.6
3
+ go 1.21
4
+
5
+ toolchain go1.23.2
4
6
5
7
require (
6
8
github.com/gogo/protobuf v1.3.2
You can’t perform that action at this time.
0 commit comments