Skip to content

Commit

Permalink
Address Dockle finding
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-harvey committed Dec 12, 2024
1 parent aeec236 commit c3b49f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions latest.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ RUN apt-get update \
unzip \
&& rm -rf /var/lib/apt/lists

# Remove setuid and setgid permissions after all package installations to addresss
# https://github.com/goodwithtech/dockle/blob/master/CHECKPOINT.md#cis-di-0008
RUN find / -path /proc -prune -o -perm /6000 -type f -exec chmod a-s {} + || true

WORKDIR /home/runner
USER runner

Expand Down

0 comments on commit c3b49f2

Please sign in to comment.