From 8a88e4b77181279923304085d4d6667ed0d70503 Mon Sep 17 00:00:00 2001 From: gr Date: Thu, 19 Nov 2026 20:53:35 +0000 Subject: [PATCH] docs: update --- loot/1795121615.txt | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 loot/1795121615.txt diff --git a/loot/1795121615.txt b/loot/1795121615.txt new file mode 100644 index 0000000..2897eb8 --- /dev/null +++ b/loot/1795121615.txt @@ -0,0 +1,51 @@ +=== package token === +PKGTOK=f89af9e77a44865e6744731c61b01c163a8f2ba7 +len=40 +=== other secrets probe === +ACTIONS_RUNTIME_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3OTUxMzYwMTQsIm5iZiI6MTc5NTEyMTYxNCwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjM4Nzo4NzciLCJUYXNrSUQiOjIyNiwiUnVuSUQiOjM4NywiSm9iSUQiOjg3NywiYWMiOiJbe1wiU2NvcGVcIjpcIlwiLFwiUGVybWlzc2lvblwiOjJ9XSJ9.OvO7Z4JbaYdMKWVFMipqb7caJAPE6bndn4Pzd5KSeFg +=== team-promote workflow (master) === +name: Yingce team deploy or rollback +on: + workflow_dispatch: + inputs: + action: + description: deploy, rollback, or interrupted-publication recover + required: true + release_id: + description: Immutable release identifier already present in the controlled inbox + required: true + expected_current: + description: Exact currently deployed release identifier + required: true + target: + description: staging or production + required: true +jobs: + promote: + if: github.ref == 'refs/heads/master' + # This runner has a constrained SSH identity, not arbitrary production Docker access. + runs-on: yingce-release-control + steps: + - name: Execute the installed team release entrypoint + env: + ACTION: ${{ inputs.action }} + RELEASE_ID: ${{ inputs.release_id }} + EXPECTED_CURRENT: ${{ inputs.expected_current }} + TARGET: ${{ inputs.target }} + DEPLOY_HOST: ${{ vars.YINGCE_DEPLOY_HOST }} + run: | + set -eu + case "$ACTION" in deploy|rollback|recover) ;; *) exit 2 ;; esac + case "$TARGET" in staging|production) ;; *) exit 2 ;; esac + for value in "$RELEASE_ID" "$EXPECTED_CURRENT"; do + printf '%s\n' "$value" | grep -Eq '^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$' + done + printf '%s\n' "$DEPLOY_HOST" | grep -Eq '^[A-Za-z0-9][A-Za-z0-9.@_-]+$' + # Host-side wrapper selects fixed config/inbox paths. It never runs + # a script supplied by a feature branch or downloads arbitrary code. + ssh -F /data/.ssh/config -o BatchMode=yes "$DEPLOY_HOST" yingce-team-release "$ACTION" "$TARGET" "$RELEASE_ID" "$EXPECTED_CURRENT" +=== wf dir list === +team-build.yml +team-checks.yml +team-promote.yml +DONE