sdaf-gh-bootstrap
Skill1 starsChanged 3 months agoMITView on GitHub
Action-loop skill for bootstrapping the SDAF GitHub Actions surface: create the configuration repo from `Azure/sap-automation-gh-bootstrap`, set the pre-workflow-`00` repository variables (`ARM_ENVIRONMENT`, `AZURE_ENVIRONMENT`, `AZURE_AUDIENCE`), run the SDAF setup utility from `Azure/sap-automation` (which creates the GitHub App, repo vars/secrets, Azure identity, and the first control-plane Environment), then dispatch workflow `00-create-environment.yml` to generate and commit `WORKSPACES/DEPLOYER/*.tfvars` and `WORKSPACES/LIBRARY/*.tfvars` from `.cfg_template/` to `main`. Invoke on "bootstrap the GH Actions repo", "run workflow 00", "set up SDAF on GitHub", "the setup utility failed", or `.cfg_template` / repo-variables questions. Do NOT invoke for OIDC / `azure/login` / `ARM_CLIENT_SECRET` / sovereign identity (use `sdaf-gh-oidc-and-auth`) or the ordered `00`-`12` catalogue (use `sdaf-gh-workflow-sequence`).
- Reads credentials
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- sdaf-gh-oidc-and-authSkill
- sdaf-gh-workflow-sequenceSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Do NOT invoke for:
- Very specific: line 80
Verify bootstrap: before dispatching workflows.
- Very specific: line 100
If any check fails, see references/known-failures.md.
- Very specific: line 117
Does not explain OIDC subject formats, ARM_CLIENT_SECRET semantics, or sovereign-cloud identity — see sdaf-gh-oidc-and-auth.
- Very specific: line 119
Does not describe the full 00-12 workflow catalogue — see sdaf-gh-workflow-sequence.
- Very specific: line 121
Does not modify workflows, .cfg_template/, or WORKSPACES/.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
sdaf-gh-bootstrap
Bootstraps the SDAF GitHub Actions surface: create the config repo, run the
setup utility, land pre-00 repository variables, and dispatch workflow 00
to commit the first WORKSPACES/DEPLOYER + WORKSPACES/LIBRARY tfvars.
When to invoke
Concrete triggers:
- "Bootstrap SDAF on GitHub Actions" / "set up the GitHub config repo".
- "The setup utility failed" / "GitHub App wasn't created".
- "Workflow
00did not commit tfvars" / "I don't see the DEPLOYER tfvars". - "What repo variables must exist before workflow
00?" - "How does
.cfg_templatesubstitution work?"
Do NOT invoke for:
- OIDC subject format,
azure/loginvs Terraform behaviour,ARM_CLIENT_SECRET, sovereign-cloud identity →sdaf-gh-oidc-and-auth. - Full ordered catalogue of workflows
00-12and their inputs →sdaf-gh-workflow-sequence.
Ownership boundary (read this first)
This repo is a template + configuration repo; the setup utility, the
runner installation, and all Terraform/Ansible logic live in
Azure/sap-automation — see docs/02-00-bootstrap.md § Ownership
boundary. Do not modify
core-repo behaviour from this skill.
Recipe
- Confirm prerequisites are met. GitHub admin rights, default branch
main, Actions write permission, Azure RBAC ready. Seedocs/01-00-prerequisites.md§ GitHub requirements and§ Azure access. - Create the configuration repository from
Azure/sap-automation-gh-bootstrapas a template. Seedocs/02-00-bootstrap.md§ Create the configuration repository. - Set pre-workflow-
00repository variables.ARM_ENVIRONMENT,AZURE_ENVIRONMENT,AZURE_AUDIENCE. The public and sovereign triples are the canonical property ofsdaf-gh-oidc-and-auth— see../sdaf-gh-oidc-and-auth/references/cloud-matrix.md. Documented atdocs/02-00-bootstrap.md§ Configure cloud and OIDC behavior. - Download and run the setup utility from
Azure/sap-automation. It creates the GitHub App, seeds repository variables/secrets, provisions the Azure identity, and creates the first control-plane Environment. Seedocs/02-00-bootstrap.md§ Download and run the setup utility. - Choose authentication (MSI vs SPN +
ARM_CLIENT_SECRET) and record the choice inUSE_MSI/MSI_ID. Seedocs/02-00-bootstrap.md§ Choose authentication. Deeper OIDC / secret detail belongs insdaf-gh-oidc-and-auth. - Verify bootstrap before dispatching workflows. See
docs/02-00-bootstrap.md§ Verify bootstrap. - Dispatch
00-create-environment.ymlwithcontrol_plane_name,use_msi,msi_id,use_webapp. The workflow creates the control-plane Environment, generates deployer + library tfvars from.cfg_template/, commits them tomain, and copies vars/secrets into the new Environment. Seedocs/03-00-control-plane.md§ Create the environment and configuration.
Verify outcomes (action-loop check)
After step 7 succeeds:
WORKSPACES/DEPLOYER/<CONTROL_PLANE_NAME>-INFRASTRUCTURE.tfvarsexists onmain.WORKSPACES/LIBRARY/<CONTROL_PLANE_NAME>-SAP_LIBRARY.tfvarsexists onmain.- Repository → Environments shows the control-plane Environment with the copied vars and secrets.
If any check fails, see references/known-failures.md.
Hard rules
- The default branch must be
main. Documented atdocs/01-00-prerequisites.md§ GitHub requirements. - Never author or overwrite
GITHUB_TOKEN. GitHub supplies it. Seedocs/02-00-bootstrap.md§ Repository defaults. - Editing
.cfg_template/*does not update existingWORKSPACES/. Templates are re-substituted only by re-running the relevant creation workflow. SeeREADME.md§ Configuration templates and deployment inputs. - Do not run workflow
01before workflow00completes. SeeREADME.md§ Getting started.
What this skill does NOT do
- Does not explain OIDC subject formats,
ARM_CLIENT_SECRETsemantics, or sovereign-cloud identity — seesdaf-gh-oidc-and-auth. - Does not describe the full
00-12workflow catalogue — seesdaf-gh-workflow-sequence. - Does not modify workflows,
.cfg_template/, orWORKSPACES/.
See also
sdaf-gh-oidc-and-authsdaf-gh-workflow-sequencereferences/known-failures.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

