-
Notifications
You must be signed in to change notification settings - Fork 839
Description
Expected Behavior
Options used for making a deleting a file differs from create and update, delete commits do not provide author and committer. Therefore, deletes will not be verified and not accepted for repositories enforcing verified commits.
Actual Behavior
Delete file should behave the same as create and update. If auther and committer is configured comits in github should have the verified batch, and if policy for only accepting verified commits is set should be accepted
Terraform Version
Terraform v1.12.2
on linux_amd64
Affected Resource(s)
- github_repository_file
Terraform Configuration Files
// Create a file:
resource "github_repository_file" "foo" {
repository = "tmp"
branch = "main"
file = ".gitignore"
content = "**/*.tfstate"
commit_message = "Managed by Terraform"
commit_author = "Terraform User"
commit_email = "terraform@example.com"
overwrite_on_create = true
}
Steps to Reproduce
// Delete created file by removing resource
// resource "github_repository_file" "foo" {
// repository = "tmp"
// branch = "main"
// file = ".gitignore"
// content = "**/*.tfstate"
// commit_message = "Managed by Terraform"
// commit_author = "Terraform User"
// commit_email = "terraform@example.com"
// overwrite_on_create = true
// }}
Debug Output
Panic Output
Code of Conduct
- I agree to follow this project's Code of Conduct