Skip to content

[Sync] Update project files from source repository (539112a) - #395

Merged
mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20261103-062257-539112a
Nov 3, 2026
Merged

mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20261103-062257-539112a

Conversation

@mrz1836

@mrz1836 mrz1836 commented Nov 3, 2026

Copy link
Copy Markdown
Member

What Changed

  • NANCY_VERSION: v2.1.0 → v2.1.1 (.github/env/10-security.env)
  • MAGE_X_GORELEASER_VERSION: v2.18.3 → v2.19.0 (.github/env/10-mage-x.env)
  • MAGE_X_NANCY_VERSION: v2.1.0 → v2.1.1 (.github/env/10-mage-x.env)
  • GO_COVERAGE_VERSION: v1.6.1 → v1.7.0 (.github/env/10-coverage.env)
  • Auto-merge on Approval: evaluate now accepts at most 9 digits for the minimum-approvals setting and normalizes it to a plain decimal. apply re-validates that value and fails closed if it isn't one.
  • The apply job now also runs for the already-enabled action, as a no-op re-check queued behind any apply in progress. A new refused-workflow-files outcome handles GitHub refusing to let the App arm auto-merge for workflow-file changes. It posts an explanatory comment (when comment-on-enable is on) and shows a dedicated summary message.
  • The trigger workflow now also hands off Dependabot PRs whose base branch was retargeted (edited with a base change), in addition to opened, synchronize and reopened. Comments there were updated to match.
  • The auto-merge GitHub App docs, the PR management workflow and the Dependabot auto-merge workflow were also modified. Their diffs were trimmed, so only the general nature of these edits is known.

Why It Was Necessary

  • Bash would read a leading-zero approvals value such as 010 as octal while the evaluator reads it as decimal, which could skip the approvals blocker. Validating and normalizing the value closes that gap.
  • An apply that re-checked just before a blocker was cleared could still disable auto-merge after evaluation saw the PR as armed, and nothing else would repair it. The queued re-check covers that race.
  • Without the Workflows permission, the App cannot arm auto-merge for certain workflow-file changes. A clear message is better than a generic failure.
  • A retargeted Dependabot PR keeps its head but changes its branch rules and merged commits, so it needs re-evaluation against the new base.

Testing Performed

  • No test runs are shown in the diff. The changes are workflow, environment and documentation edits, so validation would come from CI and from exercising the workflows on real PRs.
  • The new guards can be checked by reading the conditions: the approvals regex, the apply job's allowlist if, and the dependabot job's edited plus changes.base condition.
  • The omitted diffs (docs, PR management, Dependabot auto-merge) were not reviewed in detail and should be checked in the PR itself.

Impact / Risk

  • Behavior change: An approvals value that is not a whole number of 1–9 digits now fails the evaluation. Values with leading zeros are normalized to plain decimal.
  • CI load: already-enabled evaluations now queue an extra apply run. It is a no-op re-check, but it uses runner time and only runs when the GitHub App is configured.
  • Tooling: Version bumps affect CI tooling for security scanning, release and coverage. Risk is low but depends on upstream releases behaving as expected.
  • Review gap: The trimmed workflow and docs changes carry unknown risk until reviewed directly.

Copilot AI balanced review requested due to automatic review settings November 3, 2026 06:23
@mrz1836 mrz1836 self-assigned this Nov 3, 2026
@mrz1836 mrz1836 added automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps labels Nov 3, 2026
@github-actions github-actions Bot added update General updates size/L Large change (201-500 lines) labels Nov 3, 2026

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.

🟡 Changes recommended

A critical workflow flaw admits approvals tied to a stale base after retargeting, allowing older analysis to overwrite a pending revocation and leave it unperformed.

1 open issue
What changed in this PR

This sync updates CI tooling and strengthens the repository’s auto-merge and PR-management workflows, particularly around approval validation, Dependabot retargeting, and configuration loading.

Changes:

  • Update Nancy, GoReleaser, and Go Coverage version pins.
  • Add approval-count validation, queued rechecks, Dependabot commit/base checks, and clearer workflow-permission outcomes.
  • Move configuration loading into read-only jobs and document the revised permission boundaries.
File Description
.github/​workflows/​pull-request-management.yml Load fork-management configuration through the API in the read-only lookup job.
.github/​workflows/​dependabot-auto-merge.yml Strengthen verification and queue guards; separate configuration loading from write jobs.
.github/​workflows/​auto-merge-trigger.yml Queue Dependabot evaluations after base-branch retargeting.
.github/​workflows/​auto-merge-on-approval.yml Normalize approval thresholds, queue rechecks, and report workflow-permission refusals.
.github/​env/​10-security.env Update the Nancy version pin.
.github/​env/​10-mage-x.env Update GoReleaser and Nancy version pins.
.github/​env/​10-coverage.env Update the Go Coverage version pin.
.github/​docs/​auto-merge-github-app.md Document permission boundaries, retarget handling, and workflow-file troubleshooting.

Review effort: Balanced

@mrz1836
mrz1836 merged commit 09f6a79 into master Nov 3, 2026
40 checks passed
@github-actions
github-actions Bot deleted the chore/sync-files-go-bitcoin-20261103-062257-539112a branch November 3, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps size/L Large change (201-500 lines) update General updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants