Skip to content

Commit

Permalink
fix: sentry_auth_token mode
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Nov 7, 2023
1 parent cade4a3 commit e1f6e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ COPY --chown=1000:1000 dashboard/. .

ENV NODE_ENV=production

RUN --mount=type=secret,id=sentry_auth_token \
RUN --mount=type=secret,id=sentry_auth_token,mode=0444 \

Check failure

Code scanning / SonarCloud

Permissions of sensitive mount points should be restrictive High

Remove world permissions for this sensitive file. See more on SonarCloud
yarn build; \
if [ -f "/run/secrets/sentry_auth_token" ]; then \
export SENTRY_AUTH_TOKEN=$(cat /run/secrets/sentry_auth_token); \
Expand Down

0 comments on commit e1f6e34

Please sign in to comment.