Skip to main content
SDLC Enforce is LaneSync’s own GitHub status check. It is always required on protected branches alongside checks from your sdlc.yaml.

What it does

The bootstrapped sdlc-enforce GitHub Action:
  1. Runs on pull requests targeting protected branches
  2. Evaluates SDLC policy (milestone linkage, branch rules, stage constraints)
  3. Posts a commit status named SDLC Enforce
  4. Fails the check when policy is violated — blocking merge via rulesets

Relationship to other checks

SDLC Enforce is an infrastructure constant. It is not configured in sdlc.yaml and must not be removed from rulesets.

Bootstrapped workflow

LaneSync pushes CI templates during repo bootstrap. The enforce step is part of .github/workflows/ci-*.yml:
Template variables ({{CI_CHECK_NAME}}, {{DEV_BRANCH}}, etc.) are replaced during bootstrap.

Failure scenarios

Workflow did not run — verify branch protection targets correct branches and workflow on: triggers include PR events.
Review action logs. Common causes: missing milestone link on issues, PR targets wrong branch, repo bootstrap incomplete.
Re-run bootstrap or push sdlc.yaml to trigger ruleset refresh. Full-tier app required for auto-rulesets.

Development stage vs enforce action

These layers serve different purposes: A PR can pass SDLC Enforce while the milestone remains in DEVELOPMENT due to open issues or failed CI checks listed in sdlc.yaml.

Self-hosted

Self-hosted LaneSync instances use the same check name. Set SDLC_API_URL in repository variables so the action reaches your API. See Enterprise security.