mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 15:41:02 -05:00
Use unprivileged user by default (#1862)
* Use unprivileged user by default * fix order Co-authored-by: Admiral Awkbar <admiralawkbar@github.com>
This commit is contained in:
parent
e7b7340a88
commit
7813f41047
2 changed files with 14 additions and 0 deletions
|
@ -458,6 +458,13 @@ COPY TEMPLATES /action/lib/.automation
|
||||||
################################################
|
################################################
|
||||||
RUN ACTIONS_RUNNER_DEBUG=true WRITE_LINTER_VERSIONS_FILE=true /action/lib/linter.sh
|
RUN ACTIONS_RUNNER_DEBUG=true WRITE_LINTER_VERSIONS_FILE=true /action/lib/linter.sh
|
||||||
|
|
||||||
|
############
|
||||||
|
# Set user #
|
||||||
|
############
|
||||||
|
RUN addgroup -g 1000 superlinter && \
|
||||||
|
adduser -u 1000 -D -G superlinter superlinter
|
||||||
|
USER superlinter
|
||||||
|
|
||||||
######################
|
######################
|
||||||
# Set the entrypoint #
|
# Set the entrypoint #
|
||||||
######################
|
######################
|
||||||
|
|
|
@ -393,6 +393,13 @@ COPY TEMPLATES /action/lib/.automation
|
||||||
################################################
|
################################################
|
||||||
RUN ACTIONS_RUNNER_DEBUG=true WRITE_LINTER_VERSIONS_FILE=true IMAGE=slim /action/lib/linter.sh
|
RUN ACTIONS_RUNNER_DEBUG=true WRITE_LINTER_VERSIONS_FILE=true IMAGE=slim /action/lib/linter.sh
|
||||||
|
|
||||||
|
############
|
||||||
|
# Set user #
|
||||||
|
############
|
||||||
|
RUN addgroup -g 1000 superlinter && \
|
||||||
|
adduser -u 1000 -D -G superlinter superlinter
|
||||||
|
USER superlinter
|
||||||
|
|
||||||
######################
|
######################
|
||||||
# Set the entrypoint #
|
# Set the entrypoint #
|
||||||
######################
|
######################
|
||||||
|
|
Loading…
Reference in a new issue