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

Đang mở
#207 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
78/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, go
Lĩnh vực
ci-cd, security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Go
Star
0
Fork
1
Merge trung bình
8 giờ 14 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TMHSDigital/Spackle

Tất cả issue của TMHSDigital/Spackle

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.