terraform-provider-github: [BUG] Sudden issue with Dependabot secrets
The code has been working for years, but suddenly, I started getting this error:
Terraform v1.5.3
on linux_amd64
...
Error: PUT https://api.github.com/orgs/gramLabs/dependabot/secrets/[REDACTED]: 422 Invalid request.
Invalid property /selected_repository_ids/0: `[REDACTED]` is not of type `string`.
Invalid property /selected_repository_ids/1: `[REDACTED]` is not of type `string`.
...
Invalid property /selected_repository_ids/30: `[REDACTED]` is not of type `string`. []
with github_dependabot_organization_secret.secrets["[REDACTED]"],
on secrets.tf line 23, in resource "github_dependabot_organization_secret" "secrets":
23: resource "github_dependabot_organization_secret" "secrets"
Operation failed: failed running terraform apply (exit 1)
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 15 (15 by maintainers)
@nikolay the library has been updated in the provider and I’ll be cutting a new release later today, which should hopefully resolve the issue. Please report back here if it does not.
That is indeed Dependabot-specific. Still waiting on the release, unfortunately. Perhaps we can request one if it doesn’t happen soon.
I wonder if it’s related to https://github.com/google/go-github/pull/2817. There hasn’t been a new release cut since that PR went in, but we can update ASAP as soon as there is one.
@kfcampbell The API is fine and works great - it’s the provider you maintain or the Go library that’s not using it correctly. The error message is pretty clear - you want a string to be a string, which it is, though you have a problem with strings being strings.