github.com/cloudwego/hertz@v0.9.3/.github/workflows/vulncheck.yml (about)

     1  name: Run govulncheck
     2  
     3  on:
     4    push:
     5      branches:
     6        - develop
     7      paths:
     8        - "**"
     9        - "!**.md"
    10    pull_request:
    11      paths:
    12        - "**"
    13        - "!**.md"
    14  
    15  jobs:
    16    vulncheck-check:
    17      runs-on: ubuntu-latest
    18      env:
    19        GO111MODULE: on
    20      steps:
    21        - name: Fetch Repository
    22          uses: actions/checkout@v4
    23  
    24        - name: Install Go
    25          uses: actions/setup-go@v5
    26          with:
    27            go-version: stable
    28            check-latest: true
    29            cache: false
    30  
    31        - name: Install Govulncheck
    32          run: go install golang.org/x/vuln/cmd/govulncheck@latest
    33  
    34        - name: Run Govulncheck
    35          run: govulncheck ./...