From a807320b2889d9054c9580793eaadb39b8e9575a Mon Sep 17 00:00:00 2001 From: igorlombacx Date: Thu, 21 Sep 2023 00:30:43 +0100 Subject: [PATCH] adding govulncheck job test --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6e5667fb..96e4557d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,9 @@ name: Checkmarx One CLI on: pull_request: +env: + GO_VERSION: '1.21.0-rc.4' + jobs: unit-tests: runs-on: ubuntu-latest @@ -14,7 +17,7 @@ jobs: - name: Set up Go version uses: actions/setup-go@v4 with: - go-version: '1.21.0-rc.4' + go-version: ${{ env.GO_VERSION }} - run: go version - name: Setup git run: git config --global url."https://${{ secrets.PERSONAL_ACCESS_TOKEN }}:@github.com/".insteadOf "https://github.com" @@ -47,7 +50,7 @@ jobs: - name: Set up Go version uses: actions/setup-go@v4 with: - go-version: '1.21.0-rc.4' + go-version: ${{ env.GO_VERSION }} - run: go version - name: Go Build run: go build -o ./bin/cx ./cmd @@ -115,7 +118,7 @@ jobs: - name: Set up Go version uses: actions/setup-go@v4 with: - go-version: '1.21.0-rc.4' + go-version: ${{ env.GO_VERSION }} - run: go version - name: Setup git run: git config --global url."https://${{ secrets.PERSONAL_ACCESS_TOKEN }}:@github.com/".insteadOf "https://github.com"