Skip to content

Commit 76617b2

Browse files
authored
ci(build): migrate macOS SDK to internal GCS bucket for security (googleapis#3025)
Migrate the MacOS SDK from a third-party GitHub repository to a private GCS bucket for release build.
1 parent 1c63551 commit 76617b2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.ci/continuous.release.cloudbuild.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ steps:
4747
tar -xf zig.tar.xz -C /zig-tools --strip-components=1
4848
4949
- id: "install-macos-sdk"
50-
name: golang:1
50+
name: "gcr.io/cloud-builders/gcloud:latest"
5151
waitFor: ['-']
5252
volumes:
5353
- name: 'macos-sdk'
@@ -57,8 +57,8 @@ steps:
5757
set -e
5858
apt-get update && apt-get install -y xz-utils
5959
echo "Downloading macOS 14.5 SDK..."
60-
curl -fL -o sdk.tar.xz https://github.com/alexey-lysiuk/macos-sdk/releases/download/14.5/MacOSX14.5.tar.xz
61-
60+
gcloud storage cp gs://${_ASSETS_BUCKET}/MacOSX14.5.tar.xz sdk.tar.xz
61+
6262
mkdir -p /macos-sdk/MacOSX14.5.sdk
6363
echo "Unpacking macOS 14.5 SDK..."
6464
tar -xf sdk.tar.xz -C /macos-sdk/MacOSX14.5.sdk --strip-components=1
@@ -310,4 +310,5 @@ substitutions:
310310
_AR_REPO_NAME: toolbox-dev
311311
_OLD_BUCKET_NAME: genai-toolbox-dev
312312
_BUCKET_NAME: mcp-toolbox-for-databases-dev
313+
_ASSETS_BUCKET: toolbox-build-assets
313314
_DOCKER_URI: ${_AR_HOSTNAME}/${PROJECT_ID}/${_AR_REPO_NAME}/toolbox

.ci/versioned.release.cloudbuild.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ steps:
6363
tar -xf zig.tar.xz -C /zig-tools --strip-components=1
6464
6565
- id: "install-macos-sdk"
66-
name: golang:1
66+
name: "gcr.io/cloud-builders/gcloud:latest"
6767
waitFor: ['-']
6868
volumes:
6969
- name: 'macos-sdk'
@@ -73,8 +73,8 @@ steps:
7373
set -e
7474
apt-get update && apt-get install -y xz-utils
7575
echo "Downloading macOS 14.5 SDK..."
76-
curl -fL -o sdk.tar.xz https://github.com/alexey-lysiuk/macos-sdk/releases/download/14.5/MacOSX14.5.tar.xz
77-
76+
gcloud storage cp gs://${_ASSETS_BUCKET}/MacOSX14.5.tar.xz sdk.tar.xz
77+
7878
mkdir -p /macos-sdk/MacOSX14.5.sdk
7979
echo "Unpacking macOS 14.5 SDK..."
8080
tar -xf sdk.tar.xz -C /macos-sdk/MacOSX14.5.sdk --strip-components=1
@@ -375,5 +375,6 @@ substitutions:
375375
_AR_REPO_NAME: toolbox
376376
_OLD_BUCKET_NAME: genai-toolbox
377377
_BUCKET_NAME: mcp-toolbox-for-databases
378+
_ASSETS_BUCKET: toolbox-build-assets
378379
_DOCKER_URI: ${_AR_HOSTNAME}/${PROJECT_ID}/${_AR_REPO_NAME}/toolbox
379380
_PUSH_LATEST: "false" # Substituted in trigger

0 commit comments

Comments
 (0)