File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,24 +18,24 @@ jobs:
1818 - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1919 with :
2020 ref : ${{ github.event.pull_request.head.sha }}
21+ path : 2ms
2122
2223 - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
2324 with :
2425 go-version : " ^1.22"
2526
26- - uses : actions/checkout@v4
27- with :
28- repository : Checkmarx-CxSast/2ms-internal
29- path : 2ms
30-
3127 - name : Build 2ms Binary
28+ env :
29+ CGO_ENABLED : 0
30+ GOOS : linux
31+ GOARCH : amd64
3232 run : |
3333 cd $GITHUB_WORKSPACE/2ms
34- go build -o $GITHUB_WORKSPACE/2ms/dist/2ms main.go
34+ go build -ldflags "-s -w" -a -installsuffix cgo - o $GITHUB_WORKSPACE/2ms/dist/2ms main.go
3535 chmod +x $GITHUB_WORKSPACE/2ms/dist/2ms
3636
3737 - name : Checkout CLI repo
38- uses : actions/checkout@v3
38+ uses : actions/checkout@v4
3939 with :
4040 repository : ${{ vars.CES_EXECUTOR_REPO }}
4141 token : ${{ secrets.TWOMS_BOT_PAT }}
You can’t perform that action at this time.
0 commit comments