Skip to content

ci(workflows): use the workflow lock as enrollment policy - #257

Merged
vitormattos merged 2 commits into
mainfrom
ci/workflow-sync-lock-authority
Dec 2, 2026
Merged

vitormattos merged 2 commits into
mainfrom
ci/workflow-sync-lock-authority

Conversation

@vitormattos

@vitormattos vitormattos commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Depends on LibreCodeCoop/.github#136. Merge the central fix first.

Remove the duplicate periodic include allowlist and use .github/actions-lock.txt as the authoritative enrollment record. Align the updater with the current catalog and retain the previously managed workflow scope. Do not change application code or enroll unrelated workflows.

Validation: actionlint, patch application, catalog checksum and dry-run of the new synchronizer against the branch's actual workflow files. No unregistered workflows changed; this target's dry-run was not blocked.

Draft until the central default behavior is available.

Summary by CodeRabbit

  • Chores
    • Automated workflow-template updates now use a verified bot identity and signed commits when creating pull requests.
    • Pull requests for blocked synchronization runs are created as drafts; other eligible runs create regular pull requests.
    • Pull-request creation requires successful identity verification.

Remove the periodic include allowlist and its redundant local patch. Align the updater with the reviewed catalog and preserve existing workflow enrollments.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The workflow now resolves a verified signer identity before creating a pull request, signs commits with that identity, and sets draft status based on whether synchronization was blocked. The template lock entry changed, and the template inclusion patch was removed.

Changes: Template synchronization

Layer / File(s) Summary
Template sync configuration
.github/actions-lock.txt, .github/workflows/sync-workflow-templates.yml.patch
The lock entry’s SHA-256 and catalog commit changed. The removed patch had added seven workflow templates to the sync step’s include setting.
Signer resolution and pull-request creation
.github/workflows/sync-workflow-templates.yml
The workflow validates or selects a signer identity based on token mode. Pull-request creation requires successful identity resolution, uses the resolved identity as author and committer, enables commit signing, and sets draft status based on whether synchronization was blocked.

Estimated code review effort: 2 (Simple) | ~15 minutes

Change: Other

Merge Risk: Minimal · up to d0daf

This change makes the workflow lock file the single record of enrolled workflows and updates how synchronization pull requests are signed and marked as draft. No concrete merge-blocking risk was found. Merge the central fix first, as the author states.

Architecture risk: Low · up to d0daf

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed areas: None identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the ci(workflows) scope and says the workflow lock now serves as the enrollment policy. The raw summary shows the sync-workflow-templates workflow and the actions-lock.txt entry changi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the ci(workflows) scope and says the workflow lock now serves as the enrollment policy. The raw summary shows the sync-workflow-templates workflow and the actions-lock.txt entry changing, and the objectives say the lock file replaces the duplicate include allowlist. The title covers the main change, though it does not mention the new bot identity, signing, or draft logic. That is acceptable because the title need not cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c6e7f626-facf-4fd8-8873-905db302656b
Commits

Reviewing files that changed from the base of the PR and between 1aa7d3f and d0dafbd.

Files selected for processing: 3

  • .github/actions-lock.txt
  • .github/workflows/sync-workflow-templates.yml
  • .github/workflows/sync-workflow-templates.yml.patch
Files with no reviewable changes: 1

  • .github/workflows/sync-workflow-templates.yml.patch

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

Update the managed synchronization workflow and catalog lock to the reviewed catalog revision. Preserve existing enrollment and local patches.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos marked this pull request as ready for review December 2, 2026 23:17
@vitormattos
vitormattos merged commit 15fbaf2 into main Dec 2, 2026
24 checks passed
@vitormattos
vitormattos deleted the ci/workflow-sync-lock-authority branch December 2, 2026 23:24
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.

1 participant