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

Open
#208 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
docker, github-actions, go

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
Go
Stars
0
Forks
1
Avg merge
8h 14m
Merged PRs (30d)
3

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TMHSDigital/Spackle

All issues in TMHSDigital/Spackle

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.