Skip to content

Fix SecretScanning API by switching arguments from url to json#2933

Closed
gmlewis wants to merge 41 commits intogoogle:masterfrom
gmlewis:jentfoo-secret_scaning_api
Closed

Fix SecretScanning API by switching arguments from url to json#2933
gmlewis wants to merge 41 commits intogoogle:masterfrom
gmlewis:jentfoo-secret_scaning_api

Conversation

@gmlewis
Copy link
Copy Markdown
Collaborator

@gmlewis gmlewis commented Sep 19, 2023

Closes: #2871.

This PR fixes the endpoint:
https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning/secret-scanning#update-a-secret-scanning-alert
by sending its parameters in the body instead of as URL query parameters.

I was unable to edit #2871 directly, so this is a replacement.
Thank you, @jentfoo for the bug report and initial PR!

jentfoo and others added 30 commits August 14, 2023 10:54
These structs were incorrectly defined with `url` parameters, instead these need to be encoded into `json` for the request.
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Sep 19, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gmlewis
Copy link
Copy Markdown
Collaborator Author

gmlewis commented Sep 19, 2023

Yikes, the commit history is causing problems. Starting fresh by closing.

@gmlewis gmlewis closed this Sep 19, 2023
@gmlewis gmlewis deleted the jentfoo-secret_scaning_api branch September 19, 2023 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.