diff --git a/README.md b/README.md index 3ca5f4e8..2c619302 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,9 @@ COPY Gemfile Gemfile.lock ./ RUN --mount=type=secret,id=GITHUB_TOKEN \ BUNDLE_GITHUB__COM=x-access-token:$(cat /run/secrets/GITHUB_TOKEN) \ bundle install + +# Remove git configs with exposed GITHUB_TOKEN +RUN find /usr/local/bundle/cache/bundler/git -name "config" -delete ``` ### Using command arguments for Traefik