No check reports stale action SHAs, Dockerfile digests or Go modules

未關閉
#208 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
55/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
docker, github-actions, go

研究方向

Read .github/workflows/tool-versions.yml to understand the existing staleness check, then inspect the Dockerfile digests, release workflow action pins, and go.mod. Compare the proposed Dependabot configuration with extending the existing check; the acceptance criteria require reporting stale action pins, image digests, and Go modules, and checking the image's Go patch against the latest patch. Run make test-short and make lint when done.

由索引模型根據 Issue 內容生成。

描述

dependencies help wanted severity: low

Summary

The only staleness check covers golangci-lint, GoReleaser, the five scanners and sandbox image end-of-life dates. The 20 SHA-pinned actions, both Dockerfile base image digests and the four Go modules are outside it, and there is no Dependabot or Renovate configuration.

Where

  • .github/workflows/tool-versions.yml:3-14
  • Dockerfile:5, Dockerfile:6, Dockerfile:25 (digests updated by hand)
  • .github/workflows/release.yml:31, :85
  • go.mod:5

Details

All three classes are current today (checked by hand for this audit: every action SHA equals its tag and its tag is the latest release; go.mod has no available update; the distroless digest equals the current tag). The golang digest has already drifted from the golang:1.27 tag, though the Go patch version is still the latest.

Impact

The release pipeline builds with two toolchain sources. GoReleaser archives use go-version: '1.27', which floats to the newest patch. The container image is built from the pinned digest, which stays on the Go patch it was pinned at. When a Go patch release ships a standard library fix, the archives pick it up and the image does not, and no job fails. The same silence applies to a new release of an action in the release path and to a new distroless base.

Suggested fix

Either add .github/dependabot.yml with the github-actions, docker and gomod ecosystems (it keeps SHA pins with their version comments and updates digests), or extend tool-versions.yml in the style it already has: compare the Dockerfile digests with docker buildx imagetools inspect, compare each uses: owner/repo@sha # vX with the latest release, and fail on any available update in go list -m -u -json all. For the image toolchain, comparing the Go version of the pinned digest with the latest 1.27 patch catches the case that matters.

Acceptance criteria

  • A scheduled check or bot reports a stale action pin, base image digest and Go module
  • The image's Go patch version is compared with the latest patch

Related: #52, #51

Getting started

  • Relevant files: .github/workflows/tool-versions.yml, Dockerfile, .github/dependabot.yml (new)
  • 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, docs/ARCHITECTURE.md

Filed by repo-audit/full-audit at 50e92ec. Severity: low. Effort: M. audit-key: dependencies|.github/workflows/tool-versions.yml|pin-staleness-coverage

主要語言
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 摘要。