From bcd244bfa004d93d980c9f4fcab9ee2487af2dbb Mon Sep 17 00:00:00 2001 From: Nozomi Ishii Date: Tue, 21 Apr 2026 23:52:09 +0900 Subject: [PATCH] Add OCI image source label to the Docker image Add `org.opencontainers.image.source` and `org.opencontainers.image.licenses` to the final stage of the Dockerfile so downstream tools (Renovate, Dependabot, Docker Hub image page, GHCR "Connect repository") can auto-resolve this repository as the image source. Fixes the missing repository link and release notes section on generated dependency update PRs in consumer repos. Ref: https://github.com/opencontainers/image-spec/blob/main/annotations.md --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4ecbe0661..63a0781ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,8 @@ RUN go build -v -ldflags "-s -w -X github.com/rhysd/actionlint.version=${ACTIONL FROM koalaman/shellcheck-alpine:stable AS shellcheck FROM alpine:${ALPINE_VER} +LABEL org.opencontainers.image.source="https://github.com/rhysd/actionlint" +LABEL org.opencontainers.image.licenses="MIT" COPY --from=builder /go/src/app/actionlint /usr/local/bin/ COPY --from=shellcheck /bin/shellcheck /usr/local/bin/shellcheck RUN apk add --no-cache py3-pyflakes