Skip to content

Merge pull request #10 from cryptoriums/fix/no-failback-while-behind #22

Merge pull request #10 from cryptoriums/fix/no-failback-while-behind

Merge pull request #10 from cryptoriums/fix/no-failback-while-behind #22

Workflow file for this run

name: govulncheck
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
# Weekly: dependencies become vulnerable without any code change.
- cron: "23 6 * * 1"
permissions:
contents: read
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: go.mod
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
# Root module only. GO-2026-5932 (x/crypto/openpgp, no fix) is accepted:
# the cosmos-sdk keyring's armor key-file format requires it.
- name: Run govulncheck
run: |
govulncheck -format json ./... > /tmp/gv.json
jq -r 'select(.finding != null and .finding.trace[0].function != null) | .finding.osv' /tmp/gv.json \
| sort -u | grep -vx GO-2026-5932 | grep . && exit 1 || true