Repository navigation
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 34f1848. Configure here.
| - uses: actions/setup-go@v6.5.0 | ||
| with: | ||
| go-version-file: go.mod | ||
| cache: false |
There was a problem hiding this comment.
New workflow omitted from actions.lock
Medium Severity
The new macos-base.yml workflow uses actions/checkout@v4.4.0 and actions/setup-go@v6.5.0, but .github/workflows/actions.lock was not updated. That lockfile lists every other workflow, and a missing entry leaves this workflow unpinned. GitHub reports that as not-pinned, and lockfile enforcement would block the job from running.
Triggered by learned rule: Third-party GitHub Actions must be pinned to commit SHAs
Reviewed by Cursor Bugbot for commit 34f1848. Configure here.
| # | ||
| # TART_BASE is Cirrus Labs' vanilla image, pinned by digest. Cirrus Labs names | ||
| # macOS 27 "Golden Gate", so look for macos-golden-gate-vanilla, not macos-27. | ||
| TART_BASE=ghcr.io/cirruslabs/macos-golden-gate-vanilla:27.2@sha256:b35695ce30453bcc1db961a476740be72a44c2a2e464b73ece1ff0fcac12a873 |
There was a problem hiding this comment.
Tart may reject tagged digest pin
High Severity
TART_BASE is set to a Docker-style name:tag@digest reference. Tart’s remote-name grammar treats a reference as a tag or a digest, not both, so tart clone "$TART_BASE" in the base and image workflows can fail to parse the name and never pull the pinned Cirrus image.
Reviewed by Cursor Bugbot for commit 34f1848. Configure here.
|
Closing: superseded. The macOS browser image now builds with |


Summary
Building a macOS image needed three inputs nobody had written down: a Tart base reference, the same base in hypeman's registry, and an image name tied to the registry token. The base also had to be pushed to a private Tart registry first. Neither the base's source nor its macOS version was recorded, so it was easy to conclude no Tart image for macOS 27.2 existed. Cirrus Labs publishes one, under its "Golden Gate" name:
ghcr.io/cirruslabs/macos-golden-gate-vanilla:27.2. It is public, has an ASIF disk, anadmin/adminuser with passwordless sudo and SSH, and logsadminin at the console. Those are this recipe's base requirements.This PR:
images/macos/base.env, with the hypeman-registry name and digest of the same diskmacOS baseworkflow that publishes the pinned base to hypeman's registry once per base and prints the digest to pinmacOS imageworkflow. It readsbase.envand publishesbuilds/macos-chrome.admin/admin, and drops theMACOS_IMAGE_SSH_USERNAME,MACOS_IMAGE_SSH_PASSWORD,TART_REGISTRY_USERNAMEandTART_REGISTRY_PASSWORDvariable and secretsdocs/macos-experimental.mdExisting and new flows
Behavior
import-tart --basechecks that the build's stacked base disk digest equals the one the published base records. The base workflow publishes a plaintart cloneof the cached image. That clone shares the cacheddisk.img, which is the filetart clone --stackedhashes as its base (cloneAsStackedBasein Tart 2.41.1), so the digests should match.spctl --assessininstall-chrome.shalways passes. Thecodesignverify and Google team ID checks still run.macOS baseworkflow uses the same concurrency group asmacOS image, so the two never share a runner at once.base.envthrough its hypeman checkout, in a follow-up PR.Rollout
HYPEMAN_BASE_REGISTRY_TOKENwithimport-tart --mint-token --name macos-27-2and add it as a secret.macOS base, and pin the printed digest asBASE_DIGESTin a follow-up commit.HYPEMAN_REGISTRY_TOKENfor--name macos-chrome --base <host>/builds/macos-27-2@<digest>.Testing
Publishing to a local
crane registry serve --diskregistry:tart pullof the pinned base: 29.9 GB compressed, about 55 minutes. Aname:tag@sha256:reference is refused by Tart (failed to parse remote name), soTART_BASEis nowname@sha256:only.tart clone(plain) andtart clone --stackedof the base: the plain clone'sdisk.imgsha256 (4e49bbed…e3fd) equals the stacked clone'sdisk-file-content-digestannotation.import-tart --vm base-flat --name macos-27-2: published in about 15 minutes, and its config recordsdisk-digests=sha256:4e49bbed…e3fd.import-tart --vm build-stacked --name macos-chrome --base 127.0.0.1:5055/builds/macos-27-2@sha256:8de8698f… --guest-agent: passed the base digest check and uploaded only the overlay (0.3 s).packer validate -syntax-only images/macos/browser.pkr.hcl: passed.actionlinton both workflows: only the existing unknowntartrunner label warning.Not verified:
packer buildagainst the base. Over SSH as a user without a console session, and as root, Tart failed to boot the VM withVZErrorDomain Code=-9 ... Failed to create new HostKey. That is a property of the session, not of this change. The docs now say the runner must run as the console user. Theadmin/adminlogin and the Chrome install still have to be checked on thetartrunner.