You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(sandbox-kit): run sbx kit validate in the publish workflow #3866
The publish workflow validates the kit with a buildx build. sbx kit validate catches more, e.g. an inject domain that's not in the allow list. For v3 kits it needs sbx login, and of the tokens I tried only a personal access token works; it rejects OIDC and organization access tokens.
To do
Create a Docker personal access token with Repo Public Read-only, ideally from a bot account, and add it as a GitHub Actions secret (e.g. DOCKER_PAT). It's only for sbx login and can't push.
Run sbx kit validate in a separate job before package. I can open the PR once I know the secret name and the Docker username.
The next release publishes with the validate job included
validate:
needs: discoverif: needs.discover.outputs.kits != '[]'# same matrix, checkout and sbx install as `package`, no `id-token`steps:
- name: Validate kit with sbxenv:
DOCKER_PAT: ${{ secrets.DOCKER_PAT }}run: | printf '%s' "$DOCKER_PAT" | sbx login --username <docker user> --password-stdin sbx kit validate "./devel/sandbox-kit/${{ matrix.kit }}"
It's a separate job, rather than a step as I suggested in the PR, so that the stored token stays out of the job that signs and pushes.
Tested in my fork
sbx kit validate in its own job passes with a read-only personal access token and refuses a bad inject domain; sbx login rejects an organization access token: run
changed the title [-]chore(sandbox-kit): get the kit publish workflow working end to end[/-][+]chore(sandbox-kit): run `sbx kit validate` in the publish workflow[/+]on Dec 1, 2026
Activity
migmartri commentedon Dec 1, 2026
This should be fixed now, oidc setup was incorrect and couldn't pull the image
[-]chore(sandbox-kit): get the kit publish workflow working end to end[/-][+]chore(sandbox-kit): run `sbx kit validate` in the publish workflow[/+]e00dan commentedon Dec 1, 2026
Thanks! Looks like publishing is fixed indeed.
Only
sbx kit validateis left, so I narrowed the title and description to that.