Skip to content
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

fix(repository): don't perform additional request for security info #1388

Merged
merged 2 commits into from
Nov 29, 2022

Conversation

puiterwijk
Copy link
Contributor

The Security and Analysis information should also be returned by a GET of the Repository, so another request (and especially Edit) should not be needed.

Signed-off-by: Patrick Uiterwijk patrick@puiterwijk.org

Resolves #1387


Behavior

Before the change?

  • On import, a PATCH call is made to the repository to retrieve security and analysis information

After the change?

  • This PATCH call is not made: the information was returned in the original repo GET call, so no additional calls are made.

Other information

  • This breaks import with a GitHub app (or fine-grained token) that only has read access.

Additional info

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Added the appropriate label for the given change

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes (Please add the Type: Breaking change label)
  • No

If Yes, what's the impact:

  • N/A

Pull request type

Please add the corresponding label for change this PR introduces:

  • Bugfix: Type: Bug

The Security and Analysis information should also be returned by a GET of the
Repository, so another request (and especially Edit) should not be needed.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
@kfcampbell kfcampbell merged commit 1141a4b into integrations:main Nov 29, 2022
@puiterwijk puiterwijk deleted the get_is_get branch November 29, 2022 02:10
kazaker pushed a commit to auto1-oss/terraform-provider-github that referenced this pull request Dec 28, 2022
…ntegrations#1388)

The Security and Analysis information should also be returned by a GET of the
Repository, so another request (and especially Edit) should not be needed.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
avidspartan1 pushed a commit to avidspartan1/terraform-provider-github that referenced this pull request Feb 5, 2024
…ntegrations#1388)

The Security and Analysis information should also be returned by a GET of the
Repository, so another request (and especially Edit) should not be needed.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
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.

[MAINT]: In order to import a project, a PATCH call is made to get security and analysis information
3 participants