Skip to content

Commit f858e3d

Browse files
committed
hide token from client-to-server call
1 parent 06c2a30 commit f858e3d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

api/docker-entrypoint.api/entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
configTemplateFile=/api/app-config.template.js
44
configTargetFile=/api/public/assets/app-config.js
55

6+
# Temporarily unset VUE_APP_GITHUB_TOKEN
7+
# this is requiered until vue app is updated to remove tokens from it
8+
tempToken=$VUE_APP_GITHUB_TOKEN
9+
unset VUE_APP_GITHUB_TOKEN
10+
611
envsubst <"$configTemplateFile" >"$configTargetFile"
712

13+
# Restore VUE_APP_GITHUB_TOKEN
14+
export VUE_APP_GITHUB_TOKEN=$tempToken
15+
816
node server.mjs

0 commit comments

Comments
 (0)