Skip to content

PCP-2009 : Add PR validations for CAPZ #9

PCP-2009 : Add PR validations for CAPZ

PCP-2009 : Add PR validations for CAPZ #9

name: GoVulnCheck
on: [pull_request]
concurrency:
group: govulncheck-${{ github.ref }}
cancel-in-progress: true
jobs:
govulncheck-pr-scan:
runs-on: ubuntu-latest
container:
image: gcr.io/spectro-images-public/golang:alpine
steps:
- name: install-govulncheck
run: GOBIN=/usr/local/bin go install golang.org/x/vuln/cmd/govulncheck@latest
- name: checkout
uses: actions/checkout@v3
- name: set-github-access
run: |
/usr/bin/git config --global --add url."https://${{ secrets.GH_TOKEN }}:x-oauth-basic@github".insteadOf ssh://git@github
/usr/bin/git config --global --add url."https://${{ secrets.GH_TOKEN }}:x-oauth-basic@github".insteadOf https://github
/usr/bin/git config --global --add url."https://${{ secrets.GH_TOKEN }}:x-oauth-basic@github".insteadOf git@github
- name: govulncheck-scan
run: |
go version
govulncheck -mode source ./
govulncheck -mode source ./hack/tools