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. If GitHub blocks automatic merging, review and merge the setup PR in LaneSync. Protection then completes using the App, without a PAT — 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. Review your choices before applying setup.
2
Create the bootstrap PR
On the final Set up step, paste your PAT and click Apply setup & create 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 Review & merge setup PR from the wizard to review the files and merge in LaneSync when GitHub permits it. View in GitHub is also available. PAT-based setup does not auto-merge.When you are satisfied, merge the PR. LaneSync detects the merge through the webhook or pending-setup reconciliation, 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. LaneSync can reuse the encrypted PAT while it remains available; supply a replacement if it expired or was cleared after a failed attempt. Check the reported permissions or GitHub plan limitation before retrying repeatedly. Disabled, missing and unverifiable protection have distinct statuses; a configuration file or merged PR alone does not mean the repository is ready.Routine status checks do not reactivate rulesets that you deliberately disabled.
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 integrity-watched workflow files on every push webhook. Today only the SDLC gate workflow is watched:
CI and deploy starter templates are LaneSync-managed and can be refreshed via Update LaneSync Workflows, but edits to those files do not trigger integrity alerts.
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). LaneSync retains the encrypted token for up to 1 hour — supply a replacement if needed. For App-based pending setup, retry uses the installed App and does not ask for a PAT.
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
Review the current protection status and use the authorized setup configuration flow to restore missing protection. Routine status checks do not restore deliberately disabled rulesets. Contact support if protection cannot be restored.
Related
Install the GitHub App
Full vs minimal tier permissions and installation steps.
Configure sdlc.yaml
Customize stage gates after bootstrap completes.
Update LaneSync Workflows
Refresh managed templates after bootstrap without re-running the wizard.