GitHub Actions & CI/CD · Verschlüsselte CLI

Produktions-Deploys schützen.
Mit Face ID auf dem iPhone.

Füge einen einzigen NotiBuddy-CLI-Schritt in GitHub Actions ein für verschlüsselte Release-Freigaben und Build-Alerts — ohne Slack-Bots oder Drittkonten.

iOS 17+ & watchOS 10+ · Kostenloser Tarif enthalten · Vollständige Einrichtungsreferenz

Dark-Mode-Screenshot einer Face-ID-Deploy-Freigabe in NotiBuddy.
Jede Antwort wird auf dem Gerät signiert und vom Workflow vor dem Fortfahren geprüft.

Empfohlen · 30 Sekunden

Schnellstart: In deinen Coding-Agent einfügen

Dein Agent liest /github-actions.md, hilft beim Koppeln eines eigenen CI-Schlüssels und baut einen Fail-closed-Gate-Schritt ein.

Dein Agent liest die vollständige Anleitung unter notibuddy.app/github-actions.md (reines Markdown, Englisch).

Oder den GitHub-Actions-Schritt manuell hinzufügen

Kopple einmalig einen dedizierten CI-Absender, speichere dessen JSON in einem geschützten GitHub-Environment-Secret (NOTIBUDDY_CI_DESTINATION) und nutze dieses Fail-closed Face-ID-Gate:

.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}"
Optional: Einseitiger CI-Fehler- oder Release-Hinweis (ohne Wartezeit)

Nutze nb notify ohne --options für eine sofortige verschlüsselte Push-Meldung bei Workflow-Fehlern:

- 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}"

CI-Freigaben in 3 Schritten

1

Dedizierten CI-Schlüssel koppeln

Erstelle eine eigene Verbindung mit npx -y notibuddy@^0.4.0 pair --to ci --label "GitHub Actions" und prüfe mit doctor --to ci.

2

ci.json im Environment-Secret speichern

Speichere ~/.notibuddy/destinations/ci.json als NOTIBUDDY_CI_DESTINATION in einem branch-geschützten GitHub Environment.

3

Fail-closed mit nb gate

nb gate wartet auf eine signierte Request-ID bis --timeout und beendet nur bei verifizierter Face-ID-Freigabe mit Exit-Code 0.

Starke DevOps-Anwendungen

Release-Screens

Deploy-Dashboards mit Face ID

Zeige Canary-KPIs, Checklisten und Commit-Details per nb notify --screen vor der Freigabe.

Terraform & DB

Infrastrukturänderungen absichern

Sende Plan-Zusammenfassungen oder Schema-Diffs vor terraform apply oder Migrationen.

Sofort-Alerts

Erfolgs- oder Fehlermeldungen

Lass --options weg für verschlüsselte Einweg-Pings bei Abschluss oder Abbruch.