Skip to content

feat: generate protected repository sync PRs - #37

Merged
xnoto merged 2 commits into
mainfrom
feat/repository-sync-prs
Aug 28, 2026
Merged

feat: generate protected repository sync PRs#37
xnoto merged 2 commits into
mainfrom
feat/repository-sync-prs

Conversation

@xnoto

@xnoto xnoto commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add centrally owned OpenTofu caller templates for standard, GCP, and libvirt roots
  • add a repository-sync workflow that opens or updates downstream PRs for managed workflow and GPLv3 license files
  • use the installed GitHub App with explicitly scoped Contents, Pull requests, and Workflows permissions

Security and delivery

  • the workflow is OIDC-restricted to the repository-sync AWS role and reads one existing App key
  • it creates only per-repository automation/repository-sync branches and pull requests
  • it never writes protected default branches and never merges target PRs
  • tfroot-namecheap is excluded because it has no default branch

Dependency

Requires tfroot-aws#24 to merge and apply the github-actions-repository-sync role before this workflow runs on main.

Validation

  • reviewed the generated workflow and templates for credentials and sensitive data
  • CI will validate the OpenTofu root; target-repository CI validates generated PRs after the workflow is enabled.

@xnoto
xnoto requested a review from a team as a code owner August 28, 2026 03:41
@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

OpenTofu CI passed

View the workflow run.

Validation output (redacted, last 12000 characters)

Terraform validate.......................................................Passed
Terraform validate with tflint...........................................Passed
Checkov..................................................................Passed
Terraform fmt............................................................Passed
Terraform docs...........................................................Passed
Detect hardcoded secrets.................................................Passed
check for case conflicts.................................................Passed
check for merge conflicts................................................Passed
check for broken symlinks............................(no files to check)Skipped
check vcs permalinks.....................................................Passed
detect destroyed symlinks................................................Passed
detect private key.......................................................Passed
fix end of files.........................................................Passed
mixed line ending........................................................Passed
trim trailing whitespace.................................................Passed
don't commit to branch..................................................Skipped
check for added large files..............................................Passed

@github-actions

Copy link
Copy Markdown
Contributor

OpenTofu Plan

@xnoto
xnoto merged commit 7891709 into main Aug 28, 2026
3 checks passed
@xnoto
xnoto deleted the feat/repository-sync-prs branch August 28, 2026 03:46
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