mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-13 22:36:57 +00:00
fix(build): restrict dashboard tokens to the GitHub origin (#10379)
* fix(build): restrict dashboard tokens to the GitHub origin Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * test: remove standalone dashboard download test Signed-off-by: Dennis Zhuang <killme2008@gmail.com> --------- Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
This commit is contained in:
@@ -27,7 +27,7 @@ function retry_fetch() {
|
||||
local filename=$2
|
||||
local auth_args=()
|
||||
|
||||
if [[ -n "$DASHBOARD_GITHUB_TOKEN" ]]; then
|
||||
if [[ -n "$DASHBOARD_GITHUB_TOKEN" && "$url" == https://github.com/* ]]; then
|
||||
auth_args=(
|
||||
-H "Authorization: Bearer ${DASHBOARD_GITHUB_TOKEN}"
|
||||
-H "Accept: application/octet-stream"
|
||||
|
||||
Reference in New Issue
Block a user