Skip to content

chore(sandbox-kit): run sbx kit validate in the publish workflow #3866

Backlog

Description

@e00dan

Follow-up to #3854: sbx kit validate task. Publishing itself works again as of v1.139.0 (run).

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: discover
  if: needs.discover.outputs.kits != '[]'
  # same matrix, checkout and sbx install as `package`, no `id-token`
  steps:
    - name: Validate kit with sbx
      env:
        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

Activity

  1. migmartri commented on Dec 1, 2026

    @migmartri
    Member

    This should be fixed now, oidc setup was incorrect and couldn't pull the image

  2. 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
  3. e00dan commented on Dec 1, 2026

    @e00dan
    ContributorAuthor

    Thanks! Looks like publishing is fixed indeed.

    Only sbx kit validate is left, so I narrowed the title and description to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions