You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs suggest to pass TURBO_TOKEN as ARG, which gives off a warning:
SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "TURBO_TOKEN")
SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "TURBO_TOKEN")
# TURBO_TOKEN is preferrably set from CI secrets, not plain text
export TURBO_TOKEN=myGeneratedToken
docker buildx build --progress=plain --platform linux/amd64,linux/arm64 -f Dockerfile . --build-arg TURBO_TEAM=“ducktors” --build-arg --secret id=TURBO_TOKEN --no-cache
🐛 Bug Report
The docs suggest to pass
TURBO_TOKEN
asARG
, which gives off a warning:This results in
TURBO_TOKEN
being persisted inside (multi-stage) images according to docs: https://docs.docker.com/reference/build-checks/secrets-used-in-arg-or-env/To Reproduce
Run the docker build as currently suggested in docs.
Expected behavior
The
TURBO_TOKEN
is passed as a secret, while the other environment variables which are not so sensitive can be passed as environment variables.Essentially, it would look something like this
Dockerfile:
Command:
More info on secrets here: https://docs.docker.com/build/building/secrets/
Feel free to close the issue if you don't think it's a problem.
Your Environment
The text was updated successfully, but these errors were encountered: