Skip to content

ci: gate lockfile maintenance on main, release environment, read scope - #67

Merged
altaywtf merged 1 commit into
mainfrom
ci/lockfile-maintenance-fixes
Aug 20, 2026
Merged

ci: gate lockfile maintenance on main, release environment, read scope#67
altaywtf merged 1 commit into
mainfrom
ci/lockfile-maintenance-fixes

Conversation

@altaywtf

Copy link
Copy Markdown
Member

Summary

Follow-up to the merged lockfile-maintenance workflow (putio-frontend#29). The first live dispatch failed to mint the release-bot token — taizn run 32328993072 — because PUTIO_RELEASE_BOT_CLIENT_ID and the App private key are scoped to the release environment and the job declared no environment.

  • add environment: release (deployment: false, house release-job form)
  • gate the job on refs/heads/main so a dispatch from another ref cannot force-push the maintenance branch from a stale base
  • job-level contents: read for checkout, matching the house baseline
  • align the bot identity lookup with the fleet-majority form (%5Bbot%5D path, user_id output)

Verification

  • actionlint clean; verify runs on this PR.
  • Identical delta applied to the 5 open sibling PRs.
  • End-to-end dispatch proof needs this on main; the run above documents the failure mode it fixes.

Notes

Refs putdotio/putio-frontend#29

- run only on refs/heads/main: a workflow_dispatch from another ref
  would force-push the maintenance branch from a stale base
- environment: release — PUTIO_RELEASE_BOT_CLIENT_ID and the App
  private key are environment-scoped; the first dispatch failed to
  mint a token without it (taizn actions run 32328993072)
- job-level contents: read for checkout, matching the house baseline
- align the bot identity lookup with the fleet-majority form
  (%5Bbot%5D path, user_id output)

Refs putdotio/putio-frontend#29

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 20, 2026 03:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the lockfile maintenance GitHub Actions workflow to align with the repo’s established “release” job conventions and to prevent unsafe/manual dispatches from non-main refs from force-updating the maintenance branch.

Changes:

  • Gate the lockfile refresh job to run only on refs/heads/main.
  • Attach the job to the release environment (with deployment: false) so environment-scoped secrets/vars are available.
  • Restrict default job token permissions to contents: read and align bot identity resolution/output naming with the CI release job pattern.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@altaywtf
altaywtf merged commit 1b52dd4 into main Aug 20, 2026
3 checks passed
@altaywtf
altaywtf deleted the ci/lockfile-maintenance-fixes branch August 20, 2026 03:51
@putio-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.4.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants