Releases: cloudposse/terraform-github-repository
v1.6.0
fix: add missing field for autolink reference MichaΕ Tomaszek (@mtweeman) (#22)
## whatAdding missing variable field to the autolink references.
why
is_alphanumeric field exists in autolink_references variable, but is not added in the github_repository_autolink_reference resource. Because of that, default provider's value is used (true) regardless of the value specified by the variable.
v1.5.0
fix: add custom repository roles support MichaΕ Tomaszek (@mtweeman) (#23)
## whatAdding support for custom repository roles.
why
Currently, only base repository roles are supported. I'd be nice to be able to refer to the custom repository roles via name instead of hard-coding their IDs.
v1.4.1
feat: remove deprecated has_downloads and ignore_vulnerability_alerts_during_read variables John C. Bland II (@johncblandii) (#20)
## what- Remove the
has_downloadsvariable and its deprecation check block - Remove the
ignore_vulnerability_alerts_during_readvariable and its resource attribute - Clean up all references from module root, examples, fixtures, README, and README.yaml
why
has_downloadswas deprecated by GitHub β the feature no longer exists. It was previously marked deprecated in this module via #17 and is now fully removed.ignore_vulnerability_alerts_during_readis a no-op β the GitHub provider now handles lack of permissions automatically, making this attribute unnecessary.
references
- #17 (deprecated
has_downloads) - https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository (provider docs confirming deprecations)
π Enhancements
Bump github.com/ulikunitz/xz from 0.5.10 to 0.5.14 in /test/src @[dependabot[bot]](https://github.com/apps/dependabot) (#14)
Bumps [github.com/ulikunitz/xz](https://github.com/ulikunitz/xz) from 0.5.10 to 0.5.14.Commits
7184815Preparation of release v0.5.1488ddf1dAddress Security Issue GHSA-jc7w-c686-c4v9c8314b8Add new package xio with WriteCloserStack4f11dceUpdate README.md and SECURITY.md to address security questionsf56ebbfTODO.md: fix a typo9d122a6release version v0.5.114ce6f08lzma: fix handling of small dictionary sizes0b7c695xz: add reader benchmark5535077xz: add compression reate to Writer benchmark886dc9axz: add benchmark for Writer- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
π€ Automatic Updates
Bump github.com/ulikunitz/xz from 0.5.10 to 0.5.14 in /test/src @[dependabot[bot]](https://github.com/apps/dependabot) (#14)
Bumps [github.com/ulikunitz/xz](https://github.com/ulikunitz/xz) from 0.5.10 to 0.5.14.Commits
7184815Preparation of release v0.5.1488ddf1dAddress Security Issue GHSA-jc7w-c686-c4v9c8314b8Add new package xio with WriteCloserStack4f11dceUpdate README.md and SECURITY.md to address security questionsf56ebbfTODO.md: fix a typo9d122a6release version v0.5.114ce6f08lzma: fix handling of small dictionary sizes0b7c695xz: add reader benchmark5535077xz: add compression reate to Writer benchmark886dc9axz: add benchmark for Writer- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
v1.4.0
feat: Support github_team_repository Alvaro Gonzalez (@alvarorm22) (#11)
## what- Support the github_team_repository creation. This resource manages relationships between teams and repositories
- github_team_repository cannot be used in conjunction with github_repository_collaborators, so I've added a check in the resource count.
why
- Organizations may need this resource to manage their teams and permissions
references
closes #10
v1.3.0
feat: support for copilot_code_review thejrose1984 (#21)
## what- Added
copilot_code_reviewto therulesobject invar.rulesets, with two optional boolean attributes:review_on_push(default:false) andreview_draft_pull_requests(default:false) - Added a
dynamic "copilot_code_review"block inmain.tfto wire the new variable into thegithub_repository_rulesetresource - Bumped the minimum required GitHub provider version from
>= 6.9.0to>= 6.10.0, which is the version that introducedcopilot_code_reviewsupport
why
- Configuring Copilot code review via a repository ruleset caused perpetual drift when the setting was applied manually, because the Terraform module had no way to express it
- GitHub Enterprise users need automated Copilot peer review on PRs without relying on org-level rulesets
references
- closes cloudposse-terraform-components/aws-github-repository#32
- GitHub provider PR that added support: integrations/terraform-provider-github#2965
v1.2.0
Remove `rulesets_etags` output to eliminate permadrift @[copilot-swe-agent[bot]](https://github.com/apps/copilot-swe-agent) (#19)
The GitHub API non-deterministically returns strong vs. weak ETags (`"abc..."` vs `W/"xyz..."`) for the same ruleset resource, causing `rulesets_etags` to show spurious changes on every plan/apply cycle.Changes
outputs.tfβ removedrulesets_etagsoutput; ETags are HTTP caching internals with no stable semantic value for module consumersexamples/complete/outputs.tf,examples/minimum/outputs.tfβ removed corresponding passthrough outputstest/src/examples_complete_test.goβ removed etag output fetch and length assertion
Original prompt
This section details on the original issue you should resolve
<issue_title>Permadrift from etags</issue_title>
<issue_description>### Describe the BugI am noting permadrift with rulesets. For example:
Changes to Outputs: ~ rulesets_etags = { ~ main_branch_protection = "\"7e66b1d2703c08ce8ad4fd6c33f02f1fadc029278e88b0a5a189346c6b0386ee\"" -> "W/\"02ffd1a67e695b87303db4ab4fb71ad52d60a76e7c021cca8db01a365e21927a\"" }Expected Behavior
No drift on outputs on subsequent plan/applies
Steps to Reproduce
Happens on subsequent plan/applies
Screenshots
No response
Environment
No response
Additional Context
No response</issue_description>
Comments on the Issue (you are @copilot in this section)
- Fixes #18
π GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.
v1.1.0
deprecate: mark has_downloads variable as deprecated John C. Bland II (@johncblandii) (#17)
## what- Deprecate
has_downloadsvariable with backward-compatible warning instead of breaking removal - Add
checkblock to emit deprecation warning when users sethas_downloads = true - Remove
has_downloadsattribute fromgithub_repositoryresource - Bump minimum Terraform version to
>= 1.5(required for check blocks)
why
- The
has_downloadsattribute is officially deprecated in the GitHub Terraform provider (v6.10.2) and will be removed in a future version - Rather than breaking existing configurations by removing the variable, this approach warns users to update their code
- Terraform 1.5+ is required to use
checkblocks which enable warnings without errors
references
v1.0.0
Add repository fork, GitHub Pages, and push ruleset support John C. Bland II (@johncblandii) (#16)
## what- Add fork configuration to enable creating forked repositories
- Add GitHub Pages configuration with build type, CNAME, and source options
- Enable required_code_scanning ruleset rules (drift issue resolved)
- Add push ruleset target with file restrictions and size limits
- Add new ruleset rule types: required_linear_history, required_signatures, update, and update_allows_fetch_and_merge
why
These additions extend the module's capabilities to support more GitHub repository features and provide better control over repository rulesets, enabling enforcement of push-based rules and providing a more complete security analysis configuration.
references
- GitHub Terraform Provider: terraform-provider-github v6.9.0
v0.2.1
π Enhancements
Fix Teams Order of Operations Dan Miller (@milldr) (#13)
## what - Add dependency on repository collaborators resourcewhy
- The teams must be created for the repositories before creating environment protections rules that require reviewers (teams)
references
β Error: PUT https://api.github.com/repos/acme/my-bar-app/environments/prod: 422 Failed to create or update the environment protection rule. Required reviewers must have at least one reviewer to set prevent_self_review. []
β
β with module.repository.github_repository_environment.default["prod"],
β on .terraform/modules/repository/main.tf line 158, in resource "github_repository_environment" "default":
β 158: resource "github_repository_environment" "default" {
β
β΅
v0.2.0
feat: Support `evaluate` for Ruleset Enforcement Dan Miller (@milldr) (#8)
## what - added evaluate enforcement typeenforcement - (Required) (String) Possible values for Enforcement are disabled, active, evaluate. Note: evaluate is currently only supported for owners of type organization.
why
evaluateis supported as an enforcement type for type organization
references
π€ Automatic Updates
Bump golang.org/x/net from 0.0.0-20220826154423-83b083e8dc8b to 0.38.0 in /test/src @[dependabot[bot]](https://github.com/apps/dependabot) (#4)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220826154423-83b083e8dc8b to 0.38.0.Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
chore(deps): bump google.golang.org/grpc from 1.50.1 to 1.56.3 in /test/src @[dependabot[bot]](https://github.com/apps/dependabot) (#7)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.50.1 to 1.56.3.Release notes
Sourced from google.golang.org/grpc's releases.
Release 1.56.3
Security
server: prohibit more than MaxConcurrentStreams handlers from running at once (CVE-2023-44487)
In addition to this change, applications should ensure they do not leave running tasks behind related to the RPC before returning from method handlers, or should enforce appropriate limits on any such work.
Release 1.56.2
- status: To fix a panic,
status.FromErrornow returns an error withcodes.Unknownwhen the error implements theGRPCStatus()method, and callingGRPCStatus()returnsnil. (#6374)Release 1.56.1
- client: handle empty address lists correctly in addrConn.updateAddrs
Release 1.56.0
New Features
- client: support channel idleness using
WithIdleTimeoutdial option (#6263)
- This feature is currently disabled by default, but will be enabled with a 30 minute default in the future.
- client: when using pickfirst, keep channel state in TRANSIENT_FAILURE until it becomes READY (gRFC A62) (#6306)
- xds: Add support for Custom LB Policies (gRFC A52) (#6224)
- xds: support pick_first Custom LB policy (gRFC A62) (#6314) (#6317)
- client: add support for pickfirst address shuffling (gRFC A62) (#6311)
- xds: Add support for String Matcher Header Matcher in RDS (#6313)
- xds/outlierdetection: Add Channelz Logger to Outlier Detection LB (#6145)
- Special Thanks:
@βs-matyukevich- xds: enable RLS in xDS by default (#6343)
- orca: add support for application_utilization field and missing range checks on several metrics setters
- balancer/weightedroundrobin: add new LB policy for balancing between backends based on their load reports (gRFC A58) (#6241)
- authz: add conversion of json to RBAC Audit Logging config (#6192)
- authz: add support for stdout logger (#6230 and #6298)
- authz: support customizable audit functionality for authorization policy (#6192 #6230Β #6298 #6158 #6304 and #6225)
Bug Fixes
- orca: fix a race at startup of out-of-band metric subscriptions that would cause the report interval to request 0 (#6245)
- xds/xdsresource: Fix Outlier Detection Config Handling and correctly set xDS Defaults (#6361)
- xds/outlierdetection: Fix Outlier Detection Config Handling by setting defaults in ParseConfig() (#6361)
API Changes
- orca: allow a ServerMetricsProvider to be passed to the ORCA service and ServerOption (#6223)
Release 1.55.1
- status: To fix a panic,
status.FromErrornow returns an error withcodes.Unknownwhen the error implements theGRPCStatus()method, and callingGRPCStatus()returnsnil. (#6374)Release 1.55.0
Behavior Changes
... (truncated)