From 353b0463440abad954f98e7ff0cf2f3d47cb0b8e Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Sat, 16 Nov 2024 22:09:06 -0400 Subject: [PATCH] ADD vuklln check --- .github/workflows/test_workflow.yml | 30 ++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test_workflow.yml b/.github/workflows/test_workflow.yml index 7160568..f209f3e 100644 --- a/.github/workflows/test_workflow.yml +++ b/.github/workflows/test_workflow.yml @@ -6,23 +6,31 @@ on: - dev - 'feature/**' jobs: - build: + env: + TOKEN: ${{ secrets.TOKEN }} + USERNAME: ${{ vars.USERNAME }} + TAG_VERSION: ${{ github.ref_name }} + test: runs-on: ubuntu-latest - env: - TOKEN: ${{ secrets.TOKEN }} - USERNAME: ${{ vars.USERNAME }} - TAG_VERSION: ${{ github.ref_name }} - steps: - - name: + steps: + - name: Checkout code uses: actions/checkout@v4 - name: Setup Go uses: actions/setup-go@v5 with: go-version-file: 'go.mod' - - - name: Build - run: go build -v ./... - + - name: test with go run: go test -v ./... + + vulnCheck: + runs-on: ubuntu-latest + steps: + - name: checkout Code + uses: actions/checkout@v4 + + - name: go vuln check + uses: golang/govulncheck-action@v1 + with: + go-version-file: 'go.mod'