The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.
TypeScript agent-skillsagentic-aiai-agentsai-videobyokclaude-codecodexdeepseek-harnessdsh-plugingenerative-ailocal-firstmcpmotionmotion-graphicsmultimodalopenmotionreverse-engineeringvideo-editingvideo-generationworkbuddy
fix(ci): use configured Cloudflare release credentials
罗高b384d034795e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex a82e645f..4eecee7c 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -213,14 +213,14 @@ jobs:- name: Upload versioned guide, then conditionally update and verify the fixed URLid: uploadenv:- AWS_ACCESS_KEY_ID: ${{ secrets.MOTION_R2_ACCESS_KEY_ID }}- AWS_SECRET_ACCESS_KEY: ${{ secrets.MOTION_R2_SECRET_ACCESS_KEY }}+ AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_RELEASES_AK }}+ AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_RELEASES_SK }}AWS_EC2_METADATA_DISABLED: 'true'AWS_MAX_ATTEMPTS: '3'AWS_PAGER: ''- MOTION_R2_ENDPOINT: ${{ secrets.MOTION_R2_ENDPOINT }}- MOTION_R2_BUCKET: ${{ vars.MOTION_R2_BUCKET }}- MOTION_INSTALL_PUBLIC_ORIGIN: ${{ vars.MOTION_INSTALL_PUBLIC_ORIGIN }}+ MOTION_R2_ENDPOINT: ${{ vars.CLOUDFLARE_R2_RELEASES_URL }}+ MOTION_R2_BUCKET: ${{ vars.CLOUDFLARE_R2_RELEASES_BUCKET }}+ MOTION_INSTALL_PUBLIC_ORIGIN: ${{ vars.CLOUDFLARE_R2_RELEASES_PUBLIC_ORIGIN }}run: |aws --versionnode .github/scripts/publish-install-guide.mjs "$RUNNER_TEMP/motion-install-guide"diff --git a/docs/release-guide.md b/docs/release-guide.mdindex 5b64cd29..5ad9a369 100644--- a/docs/release-guide.md+++ b/docs/release-guide.md@@ -63,14 +63,14 @@ The existing `Motion standalone checks` workflow has a separate manual guide modAfter publication, the website can give the Agent a short prompt: "Read `<approved-public-origin>/open-motion/install.md`, install OpenMotion MCP and Skills for my current supported Agent host, preserve existing projects/settings, and report installation and preparation results." Use `/open-motion/dev/install.md` for the test software channel. These are path examples until the public origin and publication are verified.-An administrator must configure `motion-install-docs` with required reviewers and deployment-branch restrictions for the reviewed publishing branch. Place credentials on this environment, not in the low-privilege PR job. No R2 resource, credential or environment is created by this PR.+Before enabling uploads, an administrator must configure `motion-install-docs` with required reviewers and deployment-branch restrictions for the reviewed publishing branch. The publication step consumes the configured repository Secrets and Variables listed below; PR builds and guide validation do not reference publication secrets. No R2 resource, credential or environment is created by this PR.-| Environment setting | Purpose |+| GitHub setting | Purpose || --- | --- |-| Secret `MOTION_R2_ACCESS_KEY_ID` / `MOTION_R2_SECRET_ACCESS_KEY` | Bucket-scoped S3 credentials |-| Secret `MOTION_R2_ENDPOINT` | R2 S3 HTTPS origin |-| Variable `MOTION_R2_BUCKET` | Approved destination bucket |-| Variable `MOTION_INSTALL_PUBLIC_ORIGIN` | Public HTTPS origin for that bucket; routing must already work |+| Secrets `CLOUDFLARE_R2_RELEASES_AK` / `CLOUDFLARE_R2_RELEASES_SK` | Bucket-scoped S3 credentials, mapped to the AWS CLI credential environment |+| Variable `CLOUDFLARE_R2_RELEASES_URL` | R2 S3 HTTPS origin, mapped to `MOTION_R2_ENDPOINT` |+| Variable `CLOUDFLARE_R2_RELEASES_BUCKET` | Approved destination bucket, mapped to `MOTION_R2_BUCKET` |+| Variable `CLOUDFLARE_R2_RELEASES_PUBLIC_ORIGIN` | Public HTTPS origin, mapped to `MOTION_INSTALL_PUBLIC_ORIGIN`; routing must already work || Variable `MOTION_NPM_PACKAGE` | Approved public npm package name |The publisher uses the runner's AWS CLI with conditional writes and short fixed-entry caching. Publication records and prior public instructions are retained for 30 days. If readback fails, the run fails; inspect `publication.json` and the previous bytes before a separately authorized recovery. A network failure during `fixed-write-attempted` may mean the write completed: check storage rather than assuming nothing changed. Restore only the intended guide/channel; this does not downgrade installed clients or migrate projects.diff --git a/tests/install-guide.test.ts b/tests/install-guide.test.tsindex 6a2f6f35..87396cfd 100644--- a/tests/install-guide.test.ts+++ b/tests/install-guide.test.ts@@ -103,6 +103,6 @@ test('CI publication stays manual, disabled by default and in the dedicated credassert(publish.includes("github.event_name == 'workflow_dispatch' && inputs.upload_install_guide == true"));assert(publish.includes('environment: motion-install-docs') && publish.includes('needs: install-guide-validation'));assert(publish.includes('Confirm the accepted channel still selects this exact version'));- assert(!workflow.split(' publish-install-guide:\n')[0].includes('secrets.MOTION_R2_'));+ assert(!workflow.split(' publish-install-guide:\n')[0].includes('secrets.'), 'Build and guide-validation jobs must not consume publication secrets');assert(workflow.includes('candidate installation guide') && workflow.includes('--candidate'));});