administration:write or workflows:write, and you merge bootstrap changes yourself using a Personal Access Token (PAT).
When Trusted Bootstrap is used
Trusted Bootstrap applies when:- You installed the minimal tier GitHub App (
administration:readonly — no ruleset auto-creation by the App) - Your org policy blocks Apps from writing workflow files or branch protection settings
- Zero-touch bootstrap is unavailable (for example, the full tier App lacks required permissions)
- Full tier (zero-touch)
- Minimal tier (trusted)
The App creates workflows and rulesets directly. Bootstrap completes in one step — see Install the GitHub App.
Before you start
- LaneSync GitHub App installed on the repository (Install the GitHub App)
- Repo setup wizard completed through branches, language, CI checks, and approvals
- A GitHub Personal Access Token with:
reposcope (classic PAT) or repository Contents: Read and write + Administration: Write (fine-grained PAT)workflowscope (classic PAT) or Actions: Read and write (fine-grained PAT)
- At least one commit on the repository (empty repos cannot bootstrap)
Bootstrap flow
1
Complete the repo wizard
In lanesync.dev, open the repository setup wizard. Configure development branch, language, CI check names, staging toggle, and release model. LaneSync saves your choices before bootstrap begins.
2
Create the bootstrap PR
On the final Set up step, paste your PAT and click Create bootstrap PR.LaneSync calls
POST /api/repos/:repoId/bootstrap-pr using your token and opens a PR from the sdlc-bootstrap branch. The PR includes:sdlc.yamlat the repo root.github/workflows/sdlc-enforce.yml— SDLC gate (always required).github/workflows/ci.yml(or a language-specific CI template) — evidence uploader
PR_CREATED.3
Review and merge the PR
Open the PR link from the wizard or your GitHub pull requests list. Review every added file — nothing is auto-merged.When you are satisfied, merge the PR. LaneSync detects the merge via webhook, applies branch protection rulesets with your token, and marks the repository
COMPLETE.4
Wait for setup to complete
The setup wizard shows Configuring branch protection… while LaneSync applies rulesets. This usually completes within a few seconds — no GitHub Actions step is required.If setup stays pending, use Retry branch protection setup in the wizard and paste your PAT again.
SDLC Enforce is always a required check — it is LaneSync infrastructure, not something you add to sdlc.yaml. Your wizard-configured CI job names must match GitHub Actions job names exactly.File integrity monitoring
LaneSync monitors watched workflow files (WATCHED_FILES) on every push webhook:
If a watched file is modified or deleted:
- LaneSync sets a file integrity flag on the repository
- A GitHub issue is opened in your repo (label:
sdlc-integrity) naming the affected files and pusher - Pipeline enforcement may stop working until files are restored
Troubleshooting
Bootstrap PR creation fails with 403
Bootstrap PR creation fails with 403
Regenerate your PAT with
repo and workflow scopes. For fine-grained tokens, grant Contents and Actions write access to this repository only.Branch not found during bootstrap
Branch not found during bootstrap
The development branch you entered in the wizard must exist on GitHub. Return to the Branches step and match GitHub’s default branch name.
Stuck at SETUP_PENDING
Stuck at SETUP_PENDING
Open the repo setup wizard and click Retry branch protection setup. Ensure your PAT has repo + Administration (write) access (classic) or Contents + Actions + Administration (fine-grained). Tokens expire after 1 hour — generate a fresh one if needed.
HTTP 402 when starting bootstrap
HTTP 402 when starting bootstrap
Your workspace hit the free-plan repository limit. See Billing and plans to upgrade to Pro.
Rulesets missing after COMPLETE
Rulesets missing after COMPLETE
Use Retry branch protection setup in the setup wizard. On minimal tier, rulesets are created by LaneSync using your PAT — not by the App directly. Contact support if rulesets were deleted manually after setup.
Related
Install the GitHub App
Full vs minimal tier permissions and installation steps.
Configure sdlc.yaml
Customize stage gates after bootstrap completes.