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.
GitHub Actions & CI/CD · Verschlüsselte CLI
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.
Empfohlen · 30 Sekunden
Dein Agent liest /github-actions.md, hilft beim Koppeln eines eigenen CI-Schlüssels und baut einen Fail-closed-Gate-Schritt ein.
Füge NotiBuddy Deploy-Freigaben zum GitHub-Actions-Workflow dieses Repos gemäß https://notibuddy.app/github-actions.md (notibuddy@^0.4.0) hinzu. Hilf mir beim Koppeln eines eigenen CI-Absenderschlüssels im Terminal, nenne das benötigte GitHub Secret und baue ein Fail-closed `nb gate` ein. Dein Agent liest die vollständige Anleitung unter notibuddy.app/github-actions.md (reines Markdown, Englisch).
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:
- 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}" 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}" Erstelle eine eigene Verbindung mit npx -y notibuddy@^0.4.0 pair --to ci --label "GitHub Actions" und prüfe mit doctor --to ci.
Speichere ~/.notibuddy/destinations/ci.json als NOTIBUDDY_CI_DESTINATION in einem branch-geschützten GitHub Environment.
nb gate wartet auf eine signierte Request-ID bis --timeout und beendet nur bei verifizierter Face-ID-Freigabe mit Exit-Code 0.
Zeige Canary-KPIs, Checklisten und Commit-Details per nb notify --screen vor der Freigabe.
Sende Plan-Zusammenfassungen oder Schema-Diffs vor terraform apply oder Migrationen.
Lass --options weg für verschlüsselte Einweg-Pings bei Abschluss oder Abbruch.
Kopple ein iPhone mit mehreren lokalen Agenten, Editoren, CI-Runnern und Shell-Skripten — jeder mit eigenem widerrufbarem Schlüssel.