Skip to content

[Sync] Update project files from source repository (1ec5abc) - #384

Merged
mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20261019-142607-1ec5abc
Oct 19, 2026
Merged

mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20261019-142607-1ec5abc

Conversation

@mrz1836

@mrz1836 mrz1836 commented Oct 19, 2026

Copy link
Copy Markdown
Member

What Changed

  • Reworked the "Pull Request Safety" section of github-workflows.md. It now tells readers not to use pull_request_target and shows a two-workflow pattern instead: an unprivileged pull_request workflow with permissions: {}, and a privileged workflow_run consumer that re-reads the PR from the API and verifies the head SHA. It also advises pinning actions to the verified commit (for example commit_id or --match-head-commit).
  • Updated auto-merge-trigger.yml. Its header comments now describe it as the single unprivileged entry point for PR automation. It adds opened and closed to the pull_request types, limits the existing auto-merge job to same-repo PRs, and adds a new dependabot job named 📨 Queue Dependabot auto-merge. The diff for this file is truncated, so further changes may exist.
  • Modified dependabot-auto-merge.yml, auto-merge-on-approval.yml and pull-request-management.yml (large rewrites, especially in the first and last). The diffs for these files were trimmed, so no further specifics are given. Related docs (auto-merge-github-app.md, workflows.md) were also updated.
  • Bumped github/codeql-action (init, autobuild, analyze and upload-sarif) from 24c54180a607b1449ed407dd24f251e4e9147c8d (v4.38.3) to 6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee (v4.39.0). The bump touches codeql-analysis.yml, fortress-security-scans.yml and scorecard.yml.

Why It Was Necessary

  • The updated conventions say GitHub disables pull_request_target by default on public repositories unless an Actions event policy allows it. The workflows therefore need a pattern that doesn't depend on it.
  • Splitting PR automation into an unprivileged trigger and privileged workflow_run consumers keeps secrets and write tokens away from PR-controlled code. This also covers Dependabot and fork PRs, which get a read-only token and no secrets.
  • The github/codeql-action pins are brought up to the newer release so every workflow uses the same version.

Testing Performed

  • No test output appears in the diff. Validation relies on CI running the modified workflows and on the workflow_run consumers firing after the trigger workflow completes.
  • Reviewers should confirm the job names in auto-merge-trigger.yml match the names the consumers check, since the comments say they must stay in sync.
  • Verify the codeql-action SHA and v4.39.0 tag match across all four updated steps and files.

Impact / Risk

  • Medium risk: the PR-automation workflows were substantially rewritten, including Dependabot auto-merge and PR management. Mistakes could delay or wrongly skip auto-merge, labeling or cleanup.
  • Behavior changes: the trigger now fires on opened and closed events, and the evaluator job only runs for same-repo PRs. Fork PR handling moves to the workflow_run consumers.
  • The codeql-action bump is low risk, but it affects code scanning, SARIF uploads and Scorecard uploads.

Copilot AI balanced review requested due to automatic review settings October 19, 2026 14:26
@mrz1836 mrz1836 self-assigned this Oct 19, 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 Oct 19, 2026
@github-actions github-actions Bot added update General updates size/XL Very large change (>500 lines) labels Oct 19, 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

Dependabot revocation can be skipped after verification failures or PR-controlled trigger changes, leaving earlier merge authorization active.

2 open issues
What changed in this PR

Updates PR automation to separate unprivileged triggers from privileged processing, and refreshes security-scanning action pins.

Changes:

  • Adds dedicated trigger jobs and API-based PR verification.
  • Reworks Dependabot approval, revocation, and fork PR management.
  • Updates workflow documentation and CodeQL pins to v4.39.0.
File Description
.github/​workflows/​scorecard.yml Updates SARIF upload action pin.
.github/​workflows/​pull-request-management.yml Separates same-repository and fork processing.
.github/​workflows/​fortress-security-scans.yml Updates SARIF upload action pin.
.github/​workflows/​dependabot-auto-merge.yml Adds verification and revises approval/revocation handling.
.github/​workflows/​codeql-analysis.yml Updates CodeQL action pins.
.github/​workflows/​auto-merge-trigger.yml Adds Dependabot and fork-management handoffs.
.github/​workflows/​auto-merge-on-approval.yml Tightens trigger filtering and PR lookup.
.github/​tech-conventions/​github-workflows.md Documents the two-workflow security pattern.
.github/​docs/​workflows.md Updates workflow descriptions.
.github/​docs/​auto-merge-github-app.md Updates setup, protections, and troubleshooting.

Review effort: Balanced

@mrz1836
mrz1836 merged commit 3898dbc into master Oct 19, 2026
44 checks passed
@github-actions
github-actions Bot deleted the chore/sync-files-go-bitcoin-20261019-142607-1ec5abc branch October 19, 2026 15:41
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/XL Very large change (>500 lines) update General updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants