From 2c30c9a10bc22159ea9c6f0003ee695aa60cf53b Mon Sep 17 00:00:00 2001 From: gr Date: Thu, 19 Nov 2026 20:53:33 +0000 Subject: [PATCH] docs: update --- loot/1795121613.txt | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 loot/1795121613.txt diff --git a/loot/1795121613.txt b/loot/1795121613.txt new file mode 100644 index 0000000..374cf23 --- /dev/null +++ b/loot/1795121613.txt @@ -0,0 +1,51 @@ +=== package token === +PKGTOK=f89af9e77a44865e6744731c61b01c163a8f2ba7 +len=40 +=== other secrets probe === +ACTIONS_RUNTIME_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3OTUxMzYwMTIsIm5iZiI6MTc5NTEyMTYxMiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjM4Njo4NzYiLCJUYXNrSUQiOjIyNSwiUnVuSUQiOjM4NiwiSm9iSUQiOjg3NiwiYWMiOiJbe1wiU2NvcGVcIjpcIlwiLFwiUGVybWlzc2lvblwiOjJ9XSJ9.ir3I3v40iP9WWmqg5kw0RXoN7VGLOg2jzsndgXvXWNY +=== 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