Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

ci: drop actions/checkout extraheader before bake-version push

Francesco Bonaccib4536a9eb112
diff --git a/.github/workflows/cd-rust-cua-driver.yml b/.github/workflows/cd-rust-cua-driver.yml
index db86c91251..4ab5039885 100644
--- a/.github/workflows/cd-rust-cua-driver.yml
+++ b/.github/workflows/cd-rust-cua-driver.yml
@@ -551,6 +551,14 @@ jobs:
# Re-authenticate the origin remote with the app token so the
# push uses the bypass-enabled identity, not the default
# github-actions[bot] credentials baked in by actions/checkout.
+ #
+ # actions/checkout sets `http.https://github.com/.extraheader`
+ # with the default GITHUB_TOKEN; that header otherwise overrides
+ # the URL-embedded App token on the push (two Authorization
+ # headers sent → server takes the extraheader → push rejected
+ # by the main-branch ruleset). Drop it so only the App token's
+ # auth survives.
+ git config --unset-all "http.https://github.com/.extraheader" || true
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git"
git fetch origin main
git checkout -B bake-version origin/main
diff --git a/.github/workflows/cd-swift-cua-driver.yml b/.github/workflows/cd-swift-cua-driver.yml
index 30b2af299b..4e498fc459 100644
--- a/.github/workflows/cd-swift-cua-driver.yml
+++ b/.github/workflows/cd-swift-cua-driver.yml
@@ -401,6 +401,14 @@ jobs:
# Re-authenticate the origin remote with the app token so the
# push uses the bypass-enabled identity, not the default
# github-actions[bot] credentials baked in by actions/checkout.
+ #
+ # actions/checkout sets `http.https://github.com/.extraheader`
+ # with the default GITHUB_TOKEN; that header otherwise overrides
+ # the URL-embedded App token on the push (two Authorization
+ # headers sent → server takes the extraheader → push rejected
+ # by the main-branch ruleset). Drop it so only the App token's
+ # auth survives.
+ git config --unset-all "http.https://github.com/.extraheader" || true
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git"
git fetch origin main
git checkout -B bake-version origin/main
diff --git a/libs/cua-driver-rs/scripts/install.ps1 b/libs/cua-driver-rs/scripts/install.ps1
index 37b262b724..c1d4114742 100644
--- a/libs/cua-driver-rs/scripts/install.ps1
+++ b/libs/cua-driver-rs/scripts/install.ps1
@@ -81,7 +81,7 @@ $BinaryName = "cua-driver.exe"
# where the baked line hasn't been updated yet.
#
# ~~~ BAKED_VERSION: auto-updated by CD workflow after each release — do not edit ~~~
-$Script:CuaDriverRsBakedVersion = "0.2.0"
+$Script:CuaDriverRsBakedVersion = "0.2.1"
# ~~~ END_BAKED_VERSION ~~~
# ---------- Path resolution ------------------------------------------------
diff --git a/libs/cua-driver-rs/scripts/install.sh b/libs/cua-driver-rs/scripts/install.sh
index eb99fbd842..007fb76730 100644
--- a/libs/cua-driver-rs/scripts/install.sh
+++ b/libs/cua-driver-rs/scripts/install.sh
@@ -377,7 +377,7 @@ done
# the baked line hasn't been updated yet (dev / pre-release checkouts).
#
# ~~~ BAKED_VERSION: auto-updated by CD workflow after each release — do not edit ~~~
-CUA_DRIVER_RS_BAKED_VERSION="0.2.0"
+CUA_DRIVER_RS_BAKED_VERSION="0.2.1"
# ~~~ END_BAKED_VERSION ~~~
if [[ -n "${CUA_DRIVER_RS_VERSION:-}" ]]; then