The GitHub scaffold skill sets up an Agentic DevOps pipeline with Snowflake CoCo on GitHub Actions in one guided conversation.
- A GitHub repo from the github-coco-agent template
- Three Snowflake objects (role, warehouse, SERVICE user) with OIDC trust
- Four GitHub secrets +
COCO_MAX_AUTOrepository variable - Branch protection (require 1 PR review)
.github/coco-config.ymlwithconservativefix ceiling
Asks: setup mode, project type (new / import), repo name, visibility, Snowflake prefix and account.
For a new repo: creates from template, disables Actions immediately.
For an existing repo: clones and adds CI workflow files with [skip ci] to prevent premature runs.
Confirms GitHub Actions are disabled. For existing repos, disables them now.
Provisions the OIDC SERVICE user:
CREATE USER IF NOT EXISTS $SF_USER TYPE = SERVICE;
ALTER USER $SF_USER SET WORKLOAD_IDENTITY = (
TYPE = OIDC
ISSUER = 'https://token.actions.githubusercontent.com'
SUBJECT = '$OIDC_SUBJECT'
);$OIDC_SUBJECT is read from the repo's GitHub OIDC settings
(gh api repos/$REPO_PATH/actions/oidc/customization/sub) and shown pre-filled for
you to accept or edit. Repos created, renamed, or transferred after 2026-07-15 use
GitHub's immutable subject format,
repo:<owner>@<owner_id>/<repo>@<repo_id>:ref:refs/heads/main. Older repos keep
repo:<owner>/<repo>:ref:refs/heads/main unless they opt in. If the settings can't
be read, the skill builds the immutable form from the repo and owner IDs and marks
it as unverified.
Quick start: sets secrets + COCO_MAX_AUTO, re-enables Actions, applies branch protection. Done.
Full setup: asks whether to run the smoke test (Step 5).
Pushes a sample app with 3 intentional bugs. Scan workflow fires, issues are raised, fix PRs are opened. See Demo walkthrough →
Tears down everything in dependency order: disable Actions — drop Snowflake objects — delete repo — remove local clone.
The CI pipeline uses Workload Identity Federation. The combined snowflakedb/snowflake-actions@v3 action (with cortex-code: true) handles OIDC token exchange, CLI installation, and connections.toml generation in a single step.