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 摘要。