From f3cca37c3c9addf78fc48fd120bffafaaaaa614d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Gonz=C3=A1lez?= Date: Mon, 14 Sep 2026 15:21:36 -0700 Subject: [PATCH] ci: install the baton CLI from baton-sdk releases The archived conductorone/baton CLI cannot open c1z files written by baton-sdk v0.30.0 and newer, so the job that installed it fails at the first baton command once this repo's SDK moves. Install the CLI shipped with baton-sdk releases through the shared get-baton action instead, as the sibling connector repos already do. Co-Authored-By: Claude Fable 5.1 --- .github/workflows/ci.yaml | 2 +- scripts/get-baton.sh | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100755 scripts/get-baton.sh diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9dd32c3a..b3e8f22a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,7 +57,7 @@ jobs: - name: Run Docker Compose as a Daemon (to start sql server) run: docker compose -f ./docker-compose.yml up --detach - name: Install baton - run: ./scripts/get-baton.sh && mv baton /usr/local/bin + uses: ConductorOne/github-workflows/actions/get-baton@v4 - name: Build baton-sql-server run: go build ./cmd/baton-sql-server - name: Create another database diff --git a/scripts/get-baton.sh b/scripts/get-baton.sh deleted file mode 100755 index 3628606b..00000000 --- a/scripts/get-baton.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -set -euxo pipefail - -OS=$(uname -s | tr '[:upper:]' '[:lower:]') -ARCH=$(uname -m) -if [ "${ARCH}" = "x86_64" ]; then - ARCH="amd64" -fi - -RELEASES_URL="https://api.github.com/repos/conductorone/baton/releases/latest" -BASE_URL="https://github.com/conductorone/baton/releases/download" - -DOWNLOAD_URL=$(curl "${RELEASES_URL}" | jq --raw-output ".assets[].browser_download_url | match(\"${BASE_URL}/v[.0-9]+/baton-v[.0-9]+-${OS}-${ARCH}.*\"; \"i\").string") - -FILENAME=$(basename ${DOWNLOAD_URL}) - -curl -LO ${DOWNLOAD_URL} -tar xzf ${FILENAME} \ No newline at end of file