GitHub Actions & CI/CD · CLI chiffrée

Protégez vos déploiements.
Avec Face ID sur iPhone.

Ajoutez une étape NotiBuddy CLI dans GitHub Actions pour recevoir approbations de mise en prod et alertes chiffrées — sans robot Slack ni compte tiers.

iOS 17+ et watchOS 10+ · Forfait Gratuit inclus · Référence complète de configuration

Capture sombre d’une approbation de déploiement Face ID dans NotiBuddy.
Chaque réponse est signée sur votre appareil et vérifiée avant de poursuivre.

Recommandé · 30 secondes

Configuration rapide : collez ceci dans votre agent de code

Votre agent lira /github-actions.md, vous guidera pour jumeler une clé CI dédiée et ajoutera un contrôle fail-closed.

Votre agent lira le guide détaillé sur notibuddy.app/github-actions.md (Markdown brut, en anglais).

Ou ajouter l’étape GitHub Actions manuellement

Jumelez une clé CI dédiée une fois, enregistrez son JSON dans un Secret d’Environment protégé (NOTIBUDDY_CI_DESTINATION), puis ajoutez cette porte Face ID :

.github/workflows/deploy.yml
- name: Set up Node.js
  uses: actions/setup-node@v4
  with:
    node-version: '20'

- name: Request Face ID deploy approval
  shell: bash
  timeout-minutes: 15
  env:
    NOTIBUDDY_DEST_JSON: ${{ secrets.NOTIBUDDY_CI_DESTINATION }}
    APPROVE_OPTION: Approve
    DECLINE_OPTION: Reject
    TIMEOUT_SECONDS: '600'
    REF_NAME: ${{ github.ref_name }}
    COMMIT_SHA: ${{ github.sha }}
    REPO_NAME: ${{ github.repository }}
    ACTOR: ${{ github.actor }}
    RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
  run: |
    set -euo pipefail
    if [ -z "$NOTIBUDDY_DEST_JSON" ]; then
      echo "::error::Missing NOTIBUDDY_CI_DESTINATION secret."
      exit 1
    fi

    umask 077
    export NOTIBUDDY_HOME="${RUNNER_TEMP:-/tmp}/notibuddy-$$"
    NB_PREFIX="${RUNNER_TEMP:-/tmp}/notibuddy-cli-$$"
    trap 'rm -rf "$NOTIBUDDY_HOME" "$NB_PREFIX"' EXIT

    mkdir -p "$NOTIBUDDY_HOME/destinations" "$NB_PREFIX"
    printf '%s' "$NOTIBUDDY_DEST_JSON" > "$NOTIBUDDY_HOME/destinations/ci.json"
    npm --prefix "$NB_PREFIX" install --no-save --silent notibuddy@^0.4.0 >/dev/null

    "$NB_PREFIX/node_modules/.bin/nb" gate "Deploy ${REF_NAME}?" \
      --to ci \
      --sender "GitHub Actions" \
      --message "${REPO_NAME} · ${COMMIT_SHA:0:7} by ${ACTOR} · ${RUN_URL}" \
      --approve "${APPROVE_OPTION}" \
      --reject "${DECLINE_OPTION}" \
      --requires-auth \
      --timeout "${TIMEOUT_SECONDS}"
Facultatif : alerte immédiate en cas d’échec (sans attente)

Utilisez nb notify sans --options pour une notification chiffrée instantanée si le pipeline échoue :

- name: Notify iPhone on workflow failure
  if: failure()
  shell: bash
  env:
    NOTIBUDDY_DEST_JSON: ${{ secrets.NOTIBUDDY_CI_DESTINATION }}
    REF_NAME: ${{ github.ref_name }}
    REPO_NAME: ${{ github.repository }}
    RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
  run: |
    set -euo pipefail
    umask 077
    export NOTIBUDDY_HOME="${RUNNER_TEMP:-/tmp}/notibuddy-$$"
    NB_PREFIX="${RUNNER_TEMP:-/tmp}/notibuddy-cli-$$"
    trap 'rm -rf "$NOTIBUDDY_HOME" "$NB_PREFIX"' EXIT
    mkdir -p "$NOTIBUDDY_HOME/destinations" "$NB_PREFIX"
    printf '%s' "$NOTIBUDDY_DEST_JSON" > "$NOTIBUDDY_HOME/destinations/ci.json"
    npm --prefix "$NB_PREFIX" install --no-save --silent notibuddy@^0.4.0 >/dev/null
    "$NB_PREFIX/node_modules/.bin/nb" notify "CI failed on ${REF_NAME}" \
      --to ci \
      --sender "GitHub Actions" \
      --message "${REPO_NAME} · ${RUN_URL}"

Activer en 3 étapes

1

Jumelez une clé CI dédiée

Créez une connexion dédiée avec npx -y notibuddy@^0.4.0 pair --to ci --label "GitHub Actions" et vérifiez via doctor --to ci.

2

Enregistrez ci.json en Secret protégé

Enregistrez ~/.notibuddy/destinations/ci.json dans NOTIBUDDY_CI_DESTINATION d’un Environment protégé.

3

Fail-closed avec nb gate

nb gate attend sur un seul ID signé jusqu’à --timeout et retourne 0 uniquement sur approbation Face ID vérifiée.

Cas d’usage DevOps clés

Écrans de déploiement

Tableaux de bord avec Face ID

Affichez KPI canary, listes de vérification et détails du commit via nb notify --screen.

Terraform & BD

Protégez les changements d’infra

Envoyez le résumé du plan ou le diff de schéma avant terraform apply ou une migration.

Alertes instantanées

Avis de réussite ou d’échec

Omettez --options pour un avis chiffré immédiat dès qu’un pipeline se termine.