Inicio rápido
Detecta tu primera violación en 10 minutos. No necesitas un equipo de DevOps.
1. Conecta Git
Sección titulada «1. Conecta Git»En tu workspace, añade una credencial Git para GitHub, GitLab (gitlab.com o autogestionado), Bitbucket Cloud o Azure DevOps en Credentials → Add credential. Consulta Conectar un proveedor Git.
2. Registra un proyecto
Sección titulada «2. Registra un proyecto»Elige un repositorio con la credencial conectada y crea tu proyecto. AppArch genera un token de runner específico del proyecto.
3. Define reglas
Sección titulada «3. Define reglas»Empieza desde una plantilla lista para usar (Clean, Hexagonal, Layered) o escribe tu propio archivo arch.yaml:
version: 2style: hexagonallayers: - { name: presentation, paths: ["src/ui/**"] } - { name: domain, paths: ["src/domain/**"] } - { name: infrastructure, paths: ["src/infra/**"] }rules: - { id: RULE-014, forbid: "presentation → infrastructure" } - { id: RULE-002, forbid: "domain → *", except: ["std"] }4. Añádelo a tu pipeline de CI
Sección titulada «4. Añádelo a tu pipeline de CI»Añade el runner a tu pipeline de CI (ejemplo con GitLab CI):
# Image pulls are authorized with your INSTALLATION credential, not the project token# (Settings → CI/CD → Variables):# DOCKER_AUTH_CONFIG = {"auths":{"hub.apparch.io":{"auth":"base64(<installation-id>:<installation-key>)"}}}archpilot: image: hub.apparch.io/collectors/dotnet:latest rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" variables: APPARCH_Collector__Token: "$APPARCH_TOKEN" APPARCH_Collector__ApiUrl: "https://api.yourdomain.com" script: # Optional flags: --modules archpilot,archscan (pin what runs) # --fail-on critical (fail this step when findings at/above the level exist) - apparch "$CI_PROJECT_DIR"La próxima vez que se abra un PR/MR, AppArch dejará comentarios línea por línea. Consulta la sección de Integraciones para más detalles.