Skip to content

Comments

feat(github): add upgrade main workflow#33

Merged
krokoko merged 8 commits intoawslabs:mainfrom
krokoko:upgrade-main-workflow
Feb 19, 2026
Merged

feat(github): add upgrade main workflow#33
krokoko merged 8 commits intoawslabs:mainfrom
krokoko:upgrade-main-workflow

Conversation

@krokoko
Copy link
Contributor

@krokoko krokoko commented Feb 17, 2026

Automated dependency upgrades: add an upgrade-main GitHub workflow that runs on a schedule and on demand, uses mise to upgrade tools with mise upgrade --bump, captures changes as a patch, and opens a pull request with the updates.

N/A

New workflow .github/workflows/upgrade-main.yml:

  • Triggers: workflow_dispatch and daily schedule (00:00 UTC).
  • Upgrade job: Checkout main, setup mise (with cache), mise install, then mise upgrade --bump; create a patch from any changes and upload it as an artifact.
  • PR job: Runs only when there are changes; downloads the patch, applies it, and uses peter-evans/create-pull-request to open a PR from branch github-actions/upgrade-main with the dependencies label.
  • Permissions: contents: read for the upgrade job; contents: write and pull-requests: write for the PR job (using UPGRADE_MAIN_TOKEN PAT token since the default token has read only permissions and we can't update these).
  • PR body: Uses the project’s template (summary, Related, Changes, Acknowledgment) and links to the workflow run.

The build workflow with all checks and scanners will run on the created pull request

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

@krokoko krokoko requested a review from a team February 17, 2026 16:52
theagenticguy
theagenticguy previously approved these changes Feb 17, 2026
Copy link
Contributor

@theagenticguy theagenticguy left a comment

Choose a reason for hiding this comment

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

Looks good — clean two-job workflow with proper security posture:

  • Top-level permissions locked to none with minimal per-job escalation
  • All actions pinned to commit SHAs
  • Patch-based artifact handoff between jobs avoids granting write permissions to the upgrade step
  • GITHUB_TOKEN scoped appropriately (no PAT needed)
  • The build workflow will validate the auto-created PRs

Ship it.

Copy link
Member

@scottschreckengaust scottschreckengaust left a comment

Choose a reason for hiding this comment

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

Add exclusion for upgrade PR for a contributor statement.

@krokoko krokoko requested a review from dineshSajwan February 19, 2026 16:32
Copy link
Member

@scottschreckengaust scottschreckengaust left a comment

Choose a reason for hiding this comment

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

LGTM

@krokoko krokoko added this pull request to the merge queue Feb 19, 2026
Merged via the queue into awslabs:main with commit aca2086 Feb 19, 2026
22 checks passed
@krokoko krokoko deleted the upgrade-main-workflow branch February 19, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants