Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: add curl to bytebase-action Docker images and use curl in GitOps YAML templates (#19533)

rebelicea2384a0cad01
diff --git a/frontend/src/views/project/ProjectGitOpsDashboard.vue b/frontend/src/views/project/ProjectGitOpsDashboard.vue
index 846e7b3630..1a906916b8 100644
--- a/frontend/src/views/project/ProjectGitOpsDashboard.vue
+++ b/frontend/src/views/project/ProjectGitOpsDashboard.vue
@@ -627,7 +627,7 @@ ${exchangeTokenStep}
const gitlabExchangeScript = ` - |
ACCESS_TOKEN=$(curl -s -X POST "$BYTEBASE_URL/v1/auth:exchangeToken" \\
-H "Content-Type: application/json" \\
- -d "{\\"token\\":\\"$CI_JOB_JWT_V2\\",\\"email\\":\\"$BYTEBASE_WORKLOAD_IDENTITY\\"}" \\
+ -d "{\\"token\\":\\"$GITLAB_OIDC_TOKEN\\",\\"email\\":\\"$BYTEBASE_WORKLOAD_IDENTITY\\"}" \\
| jq -r '.accessToken')
export BYTEBASE_ACCESS_TOKEN=$ACCESS_TOKEN`;
diff --git a/scripts/Dockerfile.action b/scripts/Dockerfile.action
index 050b317292..f1feff120c 100644
--- a/scripts/Dockerfile.action
+++ b/scripts/Dockerfile.action
@@ -11,7 +11,7 @@ RUN go build \
FROM alpine:3.23
RUN apk update
# Azure DevOps pipeline requires bash.
-RUN apk add --no-cache jq bash gcompat
+RUN apk add --no-cache jq bash gcompat curl
WORKDIR /
COPY --from=builder /action-build/bytebase-action /usr/local/bin/bytebase-action
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
diff --git a/scripts/Dockerfile.action-debian b/scripts/Dockerfile.action-debian
index bc9583a33d..5cf5f09590 100644
--- a/scripts/Dockerfile.action-debian
+++ b/scripts/Dockerfile.action-debian
@@ -9,7 +9,7 @@ RUN go build \
-o bytebase-action action/*.go
FROM debian:bookworm-slim
-RUN apt-get update && apt-get install -y jq
+RUN apt-get update && apt-get install -y jq curl
WORKDIR /
COPY --from=builder /action-build/bytebase-action /usr/local/bin/bytebase-action
COPY --from=builder /etc/ssl/certs /etc/ssl/certs