GitHub Actions & CI/CD · CLI chiffrée

Verrouillez vos déploiements.
Avec Face ID sur iPhone.

Ajoutez une étape NotiBuddy CLI dans GitHub Actions pour recevoir validations de release et alertes de build chiffrées — sans bot Slack ni compte tiers.

iOS 17+ et watchOS 10+ · Formule Gratuite incluse · Référence complète de configuration

Capture sombre d’une validation de déploiement Face ID dans NotiBuddy.
Chaque réponse est signée sur votre appareil et vérifiée avant la suite du pipeline.

Recommandé · 30 secondes

Démarrage 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 une porte 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}"
Optionnel : alerte d’échec ou de release sans attente

Utilisez nb notify sans --options pour une notification chiffrée instantanée en cas d’échec :

- 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é

Placez ~/.notibuddy/destinations/ci.json dans NOTIBUDDY_CI_DESTINATION au sein 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 release

Tableaux de déploiement Face ID

Affichez KPI canary, listes de contrôle et commit via nb notify --screen avant la mise en prod.

Terraform & BDD

Protégez les changements d’infra

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

Alertes instantanées

Pings de succès ou d’échec

Omettez --options pour un push chiffré immédiat en fin de pipeline.