From d4bcd89295ab3a2b0d90ffb713caeae9863009e6 Mon Sep 17 00:00:00 2001 From: igorlombacx Date: Thu, 21 Sep 2023 00:23:19 +0100 Subject: [PATCH 1/4] adding govulncheck job test --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 241807be0..2603f5d19 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,7 +58,7 @@ jobs: CX_BASE_AUTH_URI: ${{ secrets.CX_BASE_AUTH_URI }} CX_AST_USERNAME: ${{ secrets.CX_AST_USERNAME }} CX_AST_PASSWORD: ${{ secrets.CX_AST_PASSWORD }} - CX_APIKEY: ${{ secrets.CX_APIKEY }} + CX_APIKEY: ${{ secrets.CX_APIKEY }} CX_TENANT: ${{ secrets.CX_TENANT }} CX_SCAN_SSH_KEY: ${{ secrets.CX_SCAN_SSH_KEY }} PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} @@ -122,3 +122,12 @@ jobs: version: v1.54.2 args: -c .golangci.yml only-new-issues: true + govulncheck: + runs-on: ubuntu-latest + name: govulncheck + steps: + - id: govulncheck + uses: golang/govulncheck-action@v1 + with: + go-version-input: '1.21.0-rc.4' + go-package: ./... \ No newline at end of file From b4cfcb0430a1bd12b5e83a7c312a6ae573849734 Mon Sep 17 00:00:00 2001 From: igorlombacx Date: Thu, 21 Sep 2023 00:26:00 +0100 Subject: [PATCH 2/4] adding govulncheck job test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2603f5d19..b1da8e5e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,5 +129,5 @@ jobs: - id: govulncheck uses: golang/govulncheck-action@v1 with: - go-version-input: '1.21.0-rc.4' + go-version-input: '1.17.x' go-package: ./... \ No newline at end of file From e00c87e315c762544ff938edb46d855901aa5363 Mon Sep 17 00:00:00 2001 From: igorlombacx Date: Thu, 21 Sep 2023 00:28:29 +0100 Subject: [PATCH 3/4] adding govulncheck job test --- .github/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1da8e5e2..cadf8ff2f 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.17.x + jobs: unit-tests: runs-on: ubuntu-latest @@ -14,7 +17,7 @@ jobs: - name: Set up Go 1.17.x uses: actions/setup-go@v2 with: - go-version: 1.17.x + go-version: ${{ env.GO_VERSION }} - name: Setup git run: git config --global url."https://${{ secrets.PERSONAL_ACCESS_TOKEN }}:@github.com/".insteadOf "https://github.com" - name: go test with coverage @@ -46,7 +49,7 @@ jobs: - name: Set up Go 1.17.x uses: actions/setup-go@v2 with: - go-version: 1.17.x + go-version: ${{ env.GO_VERSION }} - name: Go Build run: go build -o ./bin/cx ./cmd - name: Go Integration test @@ -113,7 +116,7 @@ jobs: - name: Set up Go 1.17.x uses: actions/setup-go@v4 with: - go-version: 1.17.x + go-version: ${{ env.GO_VERSION }} - name: Setup git run: git config --global url."https://${{ secrets.PERSONAL_ACCESS_TOKEN }}:@github.com/".insteadOf "https://github.com" - name: golangci-lint @@ -129,5 +132,5 @@ jobs: - id: govulncheck uses: golang/govulncheck-action@v1 with: - go-version-input: '1.17.x' + go-version-input: ${{ env.GO_VERSION }} go-package: ./... \ No newline at end of file From aec1a84ebdca60d06b32d6724525a6d874f32ea3 Mon Sep 17 00:00:00 2001 From: igorlombacx Date: Thu, 21 Sep 2023 00:29:01 +0100 Subject: [PATCH 4/4] adding govulncheck job test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cadf8ff2f..40e865384 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: pull_request: env: - GO_VERSION: 1.17.x + GO_VERSION: 1.18.x jobs: unit-tests: