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

Đang mở
#208 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/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ệ
docker, github-actions, go
Lĩnh vực
build-system, ci-cd, devops

Hướng nghiên cứu

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.

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

Mô tả

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

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.