Démarrage rapide
Détectez votre première violation en 10 minutes. Aucune équipe DevOps requise.
1. Connecter Git
Section intitulée « 1. Connecter Git »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.
2. Enregistrer un projet
Section intitulée « 2. Enregistrer un projet »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.
3. Définir des règles
Section intitulée « 3. Définir des règles »Partez d’un modèle prêt à l’emploi (Clean, Hexagonale, En couches) ou écrivez votre propre fichier 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. L’ajouter à votre pipeline CI
Section intitulée « 4. L’ajouter à votre pipeline CI »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.