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:
2525 steps :
2626 - name : Checkout code
2727 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
3328 - name : Set up Go
3429 uses : actions/setup-go@v5
3530 with :
36- go-version : ${{ env.GOVERSION }}
31+ go-version-file : go.mod
3732 - name : Run Trivy vulnerability scanner
3833 uses : aquasecurity/trivy-action@master
3934 with :
4035 scan-type : ' fs'
41- scan-ref : ' .'
36+ scan-ref : ' .'
4237 format : ' sarif'
4338 output : ' trivy-results.sarif'
4439 - name : Upload Trivy scan results to GitHub Security tab
Original file line number Diff line number Diff line change @@ -28,16 +28,10 @@ jobs:
2828 with :
2929 path : dgo
3030 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
3731 - name : Set up Go
3832 uses : actions/setup-go@v5
3933 with :
40- go-version : ${{ env.GOVERSION }}
34+ go-version-file : dgo/go.mod
4135 - name : Make Linux Build and Docker Image
4236 run : cd dgraph && make docker-image
4337 - name : Move dgraph binary to gopath
Original file line number Diff line number Diff line change @@ -20,15 +20,10 @@ jobs:
2020 runs-on : ubuntu-20.04
2121 steps :
2222 - 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
2823 - name : Setup Go
2924 uses : actions/setup-go@v5
3025 with :
31- go-version : ${{ env.GOVERSION }}
26+ go-version-file : go.mod
3227 - name : golang-lint
3328 env :
3429 # prevent OOM
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11module github.com/dgraph-io/dgo/v240
22
3- go 1.22.6
3+ go 1.21
4+
5+ toolchain go1.23.2
46
57require (
68 github.com/gogo/protobuf v1.3.2
You can’t perform that action at this time.
0 commit comments