Skip to content

Conversation

@deiga
Copy link
Contributor

@deiga deiga commented Dec 26, 2025

Resolves #2988


Before the change?

  • resource_github_repository.go was using Context-unaware functions
  • All errors in updateVulnerabilityAlerts would cause terraform to fail

After the change?

  • resource_github_repository.go is using Context-aware functions
  • Ignore specific 422 response error in updateVulnerabilityAlerts to ensure repo creation works if vulnerability alerts are not modifiable

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
In the case of `vulnerability_alerts = false` and the message indicates control from parent Org/Enterprise

Signed-off-by: Timo Sand <timo.sand@f-secure.com>
@github-actions
Copy link

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@stevehipwell stevehipwell added this to the v6.9.1 Patch milestone Dec 31, 2025
@stevehipwell stevehipwell added the Type: Bug Something isn't working as documented label Dec 31, 2025
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
@deiga deiga requested a review from stevehipwell December 31, 2025 21:15
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Copy link
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stevehipwell stevehipwell merged commit dddd42b into integrations:main Jan 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Something isn't working as documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: creation of github_repository fails from v6.7.0 onwards

3 participants