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

Aberta
#207 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
78/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
github-actions, go
Domínio
ci-cd, security

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Go
Estrelas
0
Forks
1
Merge médio
8h 14min
PRs com merge (30d)
3

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TMHSDigital/Spackle

Todas as issues de TMHSDigital/Spackle

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.