Skip to content

Commit

Permalink
adding govulncheck job test
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlombacx committed Sep 20, 2023
1 parent b4cfcb0 commit e00c87e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Checkmarx One CLI
on:
pull_request:

env:
GO_VERSION: 1.17.x

jobs:
unit-tests:
runs-on: ubuntu-latest
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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: ./...

0 comments on commit e00c87e

Please sign in to comment.