Make sure folks dont leak GITHUB_TOKENs into the image when using git dependencies
This commit is contained in:
@@ -257,6 +257,9 @@ COPY Gemfile Gemfile.lock ./
|
|||||||
RUN --mount=type=secret,id=GITHUB_TOKEN \
|
RUN --mount=type=secret,id=GITHUB_TOKEN \
|
||||||
BUNDLE_GITHUB__COM=x-access-token:$(cat /run/secrets/GITHUB_TOKEN) \
|
BUNDLE_GITHUB__COM=x-access-token:$(cat /run/secrets/GITHUB_TOKEN) \
|
||||||
bundle install
|
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
|
### Using command arguments for Traefik
|
||||||
|
|||||||
Reference in New Issue
Block a user