Upgrade govulncheck pin v1.1.4 to v1.10.0 and add it to the weekly check

未关闭
#207 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
78/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, go
领域
ci-cd, security

调研方向

Read .github/workflows/govulncheck.yml, .github/workflows/tool-versions.yml, and .github/tool-versions.env; compare how the existing Semgrep version check queries PyPI. Update the govulncheck pin and add its weekly latest-version check using the Go module proxy. Done when the scan uses v1.10.0 and the weekly job detects a newer release; the issue suggests running make test-short and make lint.

由索引模型根据 Issue 内容生成。

描述

dependencies good first issue severity: low

Summary

The govulncheck-go-mod job pins golang.org/x/vuln/cmd/[email protected] (January 2025). The latest is v1.10.0, and no check reports the pin as stale.

Where

  • .github/workflows/govulncheck.yml:37
  • .github/workflows/tool-versions.yml:51 (weekly check compares golangci-lint, GoReleaser and the five scanners only)

Details

go list -m -json golang.org/x/[email protected] reports a release date of 2025-01-06 and a go directive of 1.22.0; go list -m -versions golang.org/x/vuln ends at v1.10.0 (go directive 1.26.0). The job is green at this commit, so this is staleness, not breakage.

Impact

This job scans with the Go version go.mod names. It does so with an analyzer whose bundled tooling predates Go 1.26, so analysis and database-handling fixes made since are missing, and a future Go or database change can break or weaken the job with no pin check pointing at the cause.

Suggested fix

Move the pin to v1.10.0. Put GOVULNCHECK_VERSION in .github/tool-versions.env and compare it in tool-versions.yml with the latest version from the Go module proxy, as is done for Semgrep with PyPI.

Acceptance criteria

  • The job runs govulncheck v1.10.0 and stays green
  • The weekly tool-versions job fails when a newer govulncheck exists

Getting started

  • Relevant files: .github/workflows/govulncheck.yml, .github/workflows/tool-versions.yml, .github/tool-versions.env
  • How to run tests: make test-short (Unix) or .\make.ps1 test-short (Windows PowerShell); make lint before you call it done
  • Related docs: CONTRIBUTING.md

Filed by repo-audit/full-audit at 50e92ec. Severity: low. Effort: S. audit-key: dependencies|.github/workflows/govulncheck.yml|govulncheck-go-mod

主要语言
Go
星标
0
派生
1
平均合并
8 小时 14 分钟
30 天内合并 PR
3

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TMHSDigital/Spackle 的其他 Issue

查看 TMHSDigital/Spackle 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。