-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call to github API yields error for resource github_dependabot_organization_secret #1208
Comments
After upgrading to the Github provider v5.3.0 the situation is even worse, and the provider panics:
|
Looks like there is small bug from #1258 in the line mentioned in the stack trace above: selectedRepositoryIDs = append(selectedRepositoryIDs, id.(string)) I have never used Go. Simple search suggests: selectedRepositoryIDs = append(selectedRepositoryIDs, strconv.Itoa(id)) |
kfcampbell
added a commit
that referenced
this issue
Oct 12, 2022
* fix: `github_dependabot_organization_secret` panic Closes #1208 * Fix linting/compilation error Co-authored-by: Keegan Campbell <[email protected]>
kazaker
pushed a commit
to auto1-oss/terraform-provider-github
that referenced
this issue
Dec 28, 2022
* fix: `github_dependabot_organization_secret` panic Closes integrations#1208 * Fix linting/compilation error Co-authored-by: Keegan Campbell <[email protected]>
avidspartan1
pushed a commit
to avidspartan1/terraform-provider-github
that referenced
this issue
Feb 5, 2024
* fix: `github_dependabot_organization_secret` panic Closes integrations#1208 * Fix linting/compilation error Co-authored-by: Keegan Campbell <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
Opening an issue here too, just in case someone else hits this problem. This was traced to github's go client, but potentially to github's implementation of the two org secrets endpoints (actions and dependabot). More details below.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Output of request and error response call to the
/orgs/{org}/dependabot/secrets/{secret_name}
endpointOutput of request and success response call to the
/orgs/{org}/actions/secrets/{secret_name}
endpoint (for comparison)Panic Output
None
Expected Behavior
The creation of the dependabot org secret works with the intended type
Actual Behavior
Given the API documentation for the dependabot secrets endpoint, an array of strings is expected and, in fact, the validation returns a
422 HTTP status
What actually happened?
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
For example. Making the PUT API call to the endpoint
/orgs/myorg/actions/secrets/BAR
with a set of strings we get a 422This is not consistent with the API documentation.
References
The text was updated successfully, but these errors were encountered: