Open ViacheslavKudinov opened 1 month ago
Example should look like
resource "github_repository" "repo" { name = "my-repo" description = "GitHub repo managed by Terraform" private = false vulnerability_alerts = true } resource "github_repository_dependabot_security_updates" "example" { repository = github_repository.test.name # changed to name instead of id enabled = true }
currently https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_dependabot_security_updates#example-usage is used repository = github_repository.test.id and it creates an error
repository = github_repository.test.id
Error: PUT https://api.github.com/repos/ORG/REPO_ID/automated-security-fixes: 404 Not Found []
as API expects "repo name" in API request, not a "repo ID".
No response
Please feel free to submit a PR for this if you'd like!
Sure, thank you. I will try. Need to start with contribution guide.
Here we go https://github.com/integrations/terraform-provider-github/pull/2439
Describe the need
Example should look like
currently https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_dependabot_security_updates#example-usage is used
repository = github_repository.test.id
and it creates an erroras API expects "repo name" in API request, not a "repo ID".
SDK Version
No response
API Version
No response
Relevant log output
No response
Code of Conduct