Conversation
…e support Agent-Logs-Url: https://github.com/FociSolutions/github-foundations-modules/sessions/abf03a4e-e87a-40f7-9a8f-2657b18dd4db Co-authored-by: bzarboni1 <99673202+bzarboni1@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for archived and github_repository_vulnerability_alerts
Add Apr 27, 2026
archived support and github_repository_vulnerability_alerts resource to repository_base
bzarboni1
requested changes
Apr 27, 2026
Contributor
bzarboni1
left a comment
There was a problem hiding this comment.
See comment to change repository.tf, then please add a conditional variable github_repository_vulnerability_alerts (True|False), with a default of false
…t false) to control vulnerability alerts resource Agent-Logs-Url: https://github.com/FociSolutions/github-foundations-modules/sessions/7eae243c-710f-4a41-a123-097d391f3218 Co-authored-by: bzarboni1 <99673202+bzarboni1@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FociSolutions/github-foundations-modules/sessions/7eae243c-710f-4a41-a123-097d391f3218 Co-authored-by: bzarboni1 <99673202+bzarboni1@users.noreply.github.com>
Contributor
Author
Done in commit |
…bility_alerts Agent-Logs-Url: https://github.com/FociSolutions/github-foundations-modules/sessions/ba7b6287-2ba1-4329-a96b-26e665305be1 Co-authored-by: bzarboni1 <99673202+bzarboni1@users.noreply.github.com>
bzarboni1
approved these changes
Apr 27, 2026
seanpoulter-foci
approved these changes
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub has been unsetting/overriding two repository settings that Terraform wasn't explicitly managing. This PR adds explicit control over both.
Changes
archivedfieldarchivedvariable (default:false) torepository_baseand wired it to thegithub_repositoryresourcepublic_repository,private_repository,internal_repository, andrepository_set(asoptional(bool))github_repository_vulnerability_alertsresourceAdded a dedicated
github_repository_vulnerability_alertsresource controlled by the existinghas_vulnerability_alertsvariable:The
has_vulnerability_alertsvariable (default:true) now controls both thevulnerability_alertsattribute on thegithub_repositoryresource and whether the dedicatedgithub_repository_vulnerability_alertsresource is created. This explicit resource prevents GitHub from silently disabling Dependabot alerts outside of Terraform's control.Tests
Added assertions to
repository_base/repository.tftest.hclcoveringarchivedattribute correctness andgithub_repository_vulnerability_alertsresource creation.