fix(deps): bump modules to clear known vulns #21
No reviewers
Labels
No labels
area/engine
clarity/clear
enhancement
security
size/M
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
basepeak-ai/gptscript!21
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/deps-vulns"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Clears every vulnerability that
govulncheckreports as reachable, before the repo is made public.godirective1.26.3->1.26.9(latest go1.26 patch). CIsetup-gopinned to1.26.9;release.yamlalready usesgo-version-file: go.mod.golang.org/x/netv0.52.0 -> v0.61.0,golang.org/x/cryptov0.49.0 -> v0.58.0,go-git/go-git/v5v5.16.3 -> v5.19.3,go-git/go-billy/v5v5.6.2 -> v5.9.2,yuin/goldmarkv1.7.13 -> v1.8.6,cloudflare/circlv1.6.1 -> v1.6.5,klauspost/compressv1.18.2 -> v1.20.3.getkin/kin-openapiv0.132.0 -> v0.151.0. Its advisories were not reachable, but it was the only open item left. It needed one code change:Schema.ExclusiveMin/ExclusiveMaxare now anExclusiveBoundtype.pkg/loader/openapi.goreads the OpenAPI 3.0 boolean throughIsTrue(), so 3.0 behaviour is the same as before, and it now also maps the 3.1 numeric form.basepeak-ai/*modules (handled in sibling PRs),docker-credential-helpers(v0 minor),html2text,tiktoken-go-loader.govulncheck (
~/go/bin/govulncheck ./..., built with go1.26)Before (main @
77d3fcb, go1.26.3):(x/net 11, x/crypto 9, go-git 10, go-billy 2, goldmark 1, circl 1, stdlib 18)
After (go1.26.9):
The one left is GO-2026-5932 in
golang.org/x/crypto@v0.58.0. No fixed version exists yet ("Fixed in: N/A").Verification
go mod tidy,go build ./...andgo vet ./...pass.make gen-docsproduces no diff.golangci-lint run: 32 issues, the same count and categories as main (29 pre-existing gofmt import-order issues, 1 govet, 2 staticcheck). Nothing new.go test ./...fails in the same tests on main and on this branch:pkg/loader/github:TestLoad,TestLoad_GithubEnterprise(they expect raw.githubusercontent URLs)pkg/tests:TestMCPLoadtimes out after 10m;TestCredentialExpirationEnv,TestGPTScriptCredential,TestStackedCredentialContextsalso failintegration: needs a built binary or LLM keysCI check: every failing job fails the same way on main @
77d3fcb(runs #318/#320/#321) and on the earlier PR #20 (#314-#317), so they are pre-existing. test/integration (ubuntu) fail becausego mod downloadcannot read private git.basepeak.dev modules (could not read Username). validate-docs fails because the DinD volume mount leaves/docs/package.jsonmissing. smoke/check-label fails in jq (Cannot index string with string "name") and the smoke model jobs are skipped. The windows-latest jobs stay pending because there is no runner. Locally with go1.26.9: build, vet, gen-docs and lint are unchanged from main, and unit-test failures match main (see the PR description).