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.
GitHub Actions & CI/CD · CLI chiffrée
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.
Recommandé · 30 secondes
Votre agent lira /github-actions.md, vous guidera pour jumeler une clé CI dédiée et ajoutera un contrôle fail-closed.
Ajoute des approbations de déploiement NotiBuddy au workflow GitHub Actions de ce dépôt selon https://notibuddy.app/github-actions.md (notibuddy@^0.4.0). Guide-moi pour jumeler une clé CI dédiée dans mon Terminal, indique le secret GitHub à créer et ajoute une étape `nb gate` fail-closed. Votre agent lira le guide détaillé sur notibuddy.app/github-actions.md (Markdown brut, en anglais).
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 :
- 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}" 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}" 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.
Enregistrez ~/.notibuddy/destinations/ci.json dans NOTIBUDDY_CI_DESTINATION d’un Environment protégé.
nb gate attend sur un seul ID signé jusqu’à --timeout et retourne 0 uniquement sur approbation Face ID vérifiée.
Affichez KPI canary, listes de vérification et détails du commit via nb notify --screen.
Envoyez le résumé du plan ou le diff de schéma avant terraform apply ou une migration.
Omettez --options pour un avis chiffré immédiat dès qu’un pipeline se termine.
Jumelez un seul iPhone avec plusieurs agents locaux, éditeurs, runners CI et scripts — chacun doté de sa propre clé révocable.