Aller au contenu

Démarrage rapide

Détectez votre première violation en 10 minutes. Aucune équipe DevOps requise.

Dans votre espace de travail, ajoutez un identifiant Git pour GitHub, GitLab (gitlab.com ou autogéré), Bitbucket Cloud ou Azure DevOps sous Credentials → Add credential. Voir Connecter un fournisseur Git.

Choisissez un dépôt avec l’identifiant connecté et créez votre projet. AppArch génère un token de runner spécifique au projet.

Partez d’un modèle prêt à l’emploi (Clean, Hexagonale, En couches) ou écrivez votre propre fichier arch.yaml :

version: 2
style: hexagonal
layers:
- { 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"] }

Ajoutez le runner à votre pipeline CI (exemple 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 prochaine fois qu’une PR/MR sera ouverte, AppArch laissera des commentaires ligne par ligne. Consultez la section Intégrations pour plus de détails.