Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
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.vueindex 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.actionindex 050b317292..f1feff120c 100644--- a/scripts/Dockerfile.action+++ b/scripts/Dockerfile.action@@ -11,7 +11,7 @@ RUN go build \FROM alpine:3.23RUN apk update# Azure DevOps pipeline requires bash.-RUN apk add --no-cache jq bash gcompat+RUN apk add --no-cache jq bash gcompat curlWORKDIR /COPY --from=builder /action-build/bytebase-action /usr/local/bin/bytebase-actionCOPY --from=builder /etc/ssl/certs /etc/ssl/certsdiff --git a/scripts/Dockerfile.action-debian b/scripts/Dockerfile.action-debianindex bc9583a33d..5cf5f09590 100644--- a/scripts/Dockerfile.action-debian+++ b/scripts/Dockerfile.action-debian@@ -9,7 +9,7 @@ RUN go build \-o bytebase-action action/*.goFROM debian:bookworm-slim-RUN apt-get update && apt-get install -y jq+RUN apt-get update && apt-get install -y jq curlWORKDIR /COPY --from=builder /action-build/bytebase-action /usr/local/bin/bytebase-actionCOPY --from=builder /etc/ssl/certs /etc/ssl/certs