Skip to content

docker: bump gosu to 1.20 and fix trivy.yaml path filter - #8475

Merged
unknwon merged 1 commit into
mainfrom
docker-gosu-1.20
Nov 10, 2026
Merged

unknwon merged 1 commit into
mainfrom
docker-gosu-1.20

Conversation

@unknwon

@unknwon unknwon commented Nov 10, 2026

Copy link
Copy Markdown
Member

Describe the pull request

  • Bump gosu in the legacy Docker image from 1.17 (2023-11) to 1.20 (2026-10), the latest release. Checksums match the release's SHA256SUMS, and all three binaries (amd64, arm64, armhf) have valid signatures from tianon's key B42F6819007F00F88E364FD4036A9C25BF357DD4.
  • Fix the Docker workflow's pull_request path filter, which listed .trivy.yaml instead of trivy.yaml, so PRs that only change the Trivy config never ran the scan.

The usr/sbin/gosu skip in trivy.yaml stays. gosu 1.20 is still built on Go 1.24.6, and Trivy still reports CRITICAL/HIGH stdlib findings for it.

Link to the issue: n/a

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code or have provided the test plan. (if applicable)
  • I have added an entry to CHANGELOG. (if applicable) n/a, no user-visible change.

Test plan

  1. Ran docker/build/finalize.sh in the pinned alpine:3.24 base image on linux/amd64: the checksum check passes, gosu --version prints 1.20 (go1.24.6 on linux/amd64; gc), and gosu git id drops to the git user.
  2. Trivy 0.76.2 with the trivy.yaml settings (CRITICAL/HIGH, ignore-unfixed) on the bare gosu binary: 60 findings (4 critical) for 1.17, 26 (1 critical) for 1.20.
  3. CI: the Docker workflow builds all platforms and runs the Trivy scan.

AI usage

Investigated, written, and verified by Amp (AI coding agent): https://ampcode.com/threads/T-01a1c316-1228-707c-8e55-c9e09ca1ef5c

@unknwon
unknwon merged commit 00062cc into main Nov 10, 2026
11 checks passed
@unknwon
unknwon deleted the docker-gosu-1.20 branch November 10, 2026 01:50
appthin added a commit to appthin/gogs-plus that referenced this pull request Nov 12, 2026
Brings in the 0.14.4 security and bug fixes (gogs#8439, gogs#8472, gogs#8478, gogs#8480-gogs#8484,
gogs#8486, gogs#8488), the Highlights-based diff highlighter for the web UI (gogs#8492,
gogs#8434, gogs#8435), absolute entrypoint paths for the SPA shell (gogs#8447), Docker
workflow updates (gogs#8463, gogs#8475), and housekeeping.

Fork-specific code is preserved: CodeQL workflow, login bans, sign-in
protection, the -plus release pipeline, and the rewritten README.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant