Skip to content

Commit 501d0b6

Browse files
committed
fix: Run dockerfile actions as the default Docker user
While we explicitly made the change to non-root users a year ago, the current GitHub docs state: > Docker actions must be run by the default Docker user (root). https://docs.github.com/en/actions/reference/workflows-and-actions/dockerfile-support and we've observed issues in Enterprise GitHub environments.
1 parent f433975 commit 501d0b6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ All notable changes to this project will be documented in this file.
99
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
1010
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1111

12+
## [Unreleased]
13+
14+
### Fixed
15+
16+
- Run docker actions as a non-root user.
17+
1218
## [1.2.0] - 2024-11-10
1319

1420
### Added

next-image-tag-number/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
FROM alpine:latest
22
RUN apk add --update --no-cache --no-progress curl jq
3-
RUN adduser -u 1001 -D action
4-
USER action
53
COPY action.sh /action.sh
64
ENTRYPOINT ["/action.sh"]

set-imgpkg-bundle-as-vendir-path/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,5 @@ RUN apk add --update --no-cache --no-progress bash perl-utils \
66
&& wget -O- https://carvel.dev/install.sh | bash \
77
&& apk del bash perl-utils
88

9-
RUN adduser -u 1001 -D action
10-
USER action
11-
129
COPY action.sh /action.sh
1310
ENTRYPOINT ["/action.sh"]

0 commit comments

Comments
 (0)