Have been getting syntax errors from the gh executable itself, regardless of what arguments I try to pass in. Pinning the node arch to amd64 resolves it.
Looking at the Dockerfile, it looks like you're downloading the gh cli app for the build platform instead of the target platform, which I believe will cause it to put the amd64 file into both the amd and arm image builds.