ci: permit automated module release pull requests - #69
Merged
Merged
Conversation
Contributor
OpenTofu TestOpenTofu test passed. View run output |
Contributor
OpenTofu PlanOpenTofu plan passed. View run outputOpenTofu will perform the following actions:
# github_workflow_repository_permissions.release_automation will be created
+ resource "github_workflow_repository_permissions" "release_automation" {
+ can_approve_pull_request_reviews = true
+ default_workflow_permissions = "read"
+ id = (known after apply)
+ repository = "terraform-libvirt-domain"
}
Plan: 1 to add, 0 to change, 0 to destroy.
OpenTofu will perform the following actions:
# github_workflow_repository_permissions.release_automation will be created
+ resource "github_workflow_repository_permissions" "release_automation" {
+ can_approve_pull_request_reviews = true
+ default_workflow_permissions = "read"
+ id = (known after apply)
+ repository = "terraform-libvirt-domain"
}
Plan: 1 to add, 0 to change, 0 to destroy. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Allows GitHub Actions to create and approve pull requests only in
terraform-libvirt-domain, the repository that owns the automated release-please workflow. The first release run failed because this repository permission was disabled.Fixes #
N/A — remediates failed release run #34902129930.
Type of change
Validation
Authoritative provider evidence:
github_workflow_repository_permissionssupportsrepository,default_workflow_permissions, andcan_approve_pull_request_reviewsin the configuredintegrations/github ~> 6.0provider family. The PR plan is the authority for the exact repository-settings delta.Review gate: procedural reviewer holds were recorded because isolated reviewers did not consume the supplied packet; neither found a Critical or High defect. The earlier owner waiver applies to these procedural holds.
Impact and rollout
Producer:
tfroot-githubcentrally manages repository policy. Consumer:terraform-libvirt-domainrelease workflow, which runs only after successfulmainCI and explicitly requests onlycontents,issues, andpull-requestswrite scopes.The change enables Actions PR creation/approval for this single module repository and sets its default workflow token permission to read. It does not alter Actions permissions for other repositories. Applying the root after merge will allow release-please to create the initial release PR; the existing automated workflow creates a tag and GitHub release only after that release PR reaches
mainand itsmainCI succeeds.Rollback: revert this root change and apply the resulting plan before a later release workflow run. The failed run created an orphan
release-please--branches--mainbranch but no PR, tag, or release; no branch cleanup is included in this infrastructure change.Safety and secrets
AI-assisted change; review the policy delta and OpenTofu plan.