You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+50-4Lines changed: 50 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
## [0.9.0]
11
+
12
+
### Added
13
+
14
+
- Add support for Terraform v0.15
15
+
16
+
## [0.8.0]
17
+
18
+
**_This is a BREAKING RELEASE._**
19
+
20
+
Branch protection resourcess will be recreated and new fetures are added enforcing security by default.
21
+
22
+
Please review plans and report regressions and issues asap so we can improve documentation for upgrading.
23
+
24
+
### Upgrade path/notes:
25
+
26
+
- Branch protections will be recreated in a compatible way. Alternatively, all branch protections could be manually updated using `terraform state mv` but this is not recommended as it is a manual process that can suffer from human prone errors.
27
+
- If you do not want to archive repositories on deletion set `archive_on_destroy` to false in repository configurations.
28
+
29
+
#### Expected differences in a plan after upgrading:
30
+
31
+
- Addition to `module.<NAME>.github_repository.repository`:
32
+
- Addition or changed default of argument `archive_on_destroy = true`
33
+
- Destruction of `module.<NAME>.github_branch_protection.branch_protection[*]`
34
+
- Creation of `module.<NAME>.github_branch_protection_v3.branch_protection[*]`
35
+
- Replacement of `module.<NAME>.github_team_repository.team_repository_by_slug[<SLUG>]`
36
+
- Triggered by change in `team_id = "<NUMBER>" -> "<SLUG>"`
37
+
38
+
### Added
39
+
40
+
- Add support for Github Provider v4 (Minimal compatible version is v4.5).
41
+
- Add support for `archive_on_destroy` repository flag defaulting to `true`.
42
+
- Add support for `vulnerability_alerts` repository flag.
43
+
- Add security deny list for v4.7.0, v4.8.0, v4.9.0 and v4.9.1 due to a bug setting visibility to public for templated repository creation.
44
+
45
+
### Changed
46
+
47
+
- Use [`github_branch_protection_v3`](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/branch_protection_v3) instead of [`github_branch_protection`](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/branch_protection) for performance and compatibility reasons. **ATTENTION**: This Change will trigger recreation of all branch protections when upgrading to v0.8.0.
48
+
- Use `github_branch_default` to set default branch of repositories. **ATTENTION**: This Change will trigger creation of new resource when `default_branch` argument is set.
49
+
50
+
### Removed
51
+
52
+
-**BREAKING CHANGE**: Removed support for Github Provider before v4.3
53
+
10
54
## [0.7.0]
11
55
12
56
### Added
@@ -65,7 +109,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
65
109
- Add CONTRIBUTING.md.
66
110
- Add `phony-targets` and `markdown-link-check` hooks.
67
111
68
-
### Changelog
112
+
### Changed
69
113
70
114
- Update logo and badges in README.md.
71
115
@@ -178,7 +222,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
178
222
179
223
### Changed
180
224
181
-
- Set has_issues default value to `false`.
225
+
- Set `has_issues` default value to `false`.
182
226
183
227
## [0.0.2] - 2020-01-06
184
228
@@ -200,11 +244,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Copy file name to clipboardExpand all lines: README.md
+29-7Lines changed: 29 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,13 @@
10
10
11
11
A [Terraform] module for creating a public or private repository on [Github].
12
12
13
-
*This module supports Terraform v0.14, v0.13 as well as v0.12.9 and above
14
-
and is compatible with the Terraform Github Provider v3 as well as v2.6 and above.*
13
+
_This module supports Terraform v0.15, v0.14, v0.13 as well as v0.12.9 and above and is compatible with the Terraform Github Provider v4._
14
+
15
+
_The latest version being compatible with the Terraform Github Provider v3 as well as v2 was v0.7.0 of this module._
16
+
17
+
_Security related notice: Versions 4.7.0, 4.8.0, 4.9.0 and 4.9.1 of the Terraform Github Provider are deny-listed in version constraints as a regression introduced in 4.7.0 and fixed in 4.9.2 creates public repositories from templates even if visibility is set to private._
18
+
19
+
_Version `>= 0.8.0` of this module is compatible with `mineiros-io/team/github >= 0.4.0` and `mineiros-io/organization/github >= 0.4.0`_
15
20
16
21
-[Module Features](#module-features)
17
22
-[Getting Started](#getting-started)
@@ -87,7 +92,7 @@ Most basic usage creating a new private github repository.
87
92
```hcl
88
93
module "repository" {
89
94
source = "mineiros-io/repository/github"
90
-
version = "~> 0.6.0"
95
+
version = "~> 0.9.0"
91
96
92
97
name = "terraform-github-repository"
93
98
license_template = "apache-2.0"
@@ -157,7 +162,7 @@ See [variables.tf] and [examples/] for details and use-cases.
157
162
158
163
-~`private`~: _(Optional `bool`)_
159
164
160
-
DEPRICATED. Please use `visibility` instead and update your code. parameter will be removed in a future version
165
+
**_DEPRECATED_**: Please use `visibility` instead and update your code. parameter will be removed in a future version
161
166
162
167
-**`visibility`**: _(Optional `string`)_
163
168
@@ -219,6 +224,15 @@ See [variables.tf] and [examples/] for details and use-cases.
219
224
should be extended with more topics.
220
225
Default is `[]`.
221
226
227
+
-**`vulnerability_alerts`**: _(Optional `bool`)_
228
+
229
+
Set to `false` to disable security alerts for vulnerable dependencies.
230
+
Enabling requires alerts to be enabled on the owner level.
231
+
232
+
-**`archive_on_destroy`**: _(Optional `bool`)_
233
+
234
+
Set to `false` to not archive the repository instead of deleting on destroy.
235
+
222
236
#### Repository Creation Configuration
223
237
224
238
The following four arguments can only be set at repository creation and
**_DEPRECATED_** To ensure compatibility with future versions of this module, please use `branch_protections_v3`.
374
+
This argument is ignored if `branch_protections_v3` is used.
355
375
Default is `[]`.
356
376
357
377
#### Issue Labels Configuration
@@ -401,13 +421,15 @@ removed thislimitation.
401
421
402
422
This map allows you to create and manage secrets for repositories in your organization.
403
423
Each element in the map is considered a secret to be managed, being the key map the secret name and the value the corresponding secret in plain text:
424
+
404
425
```
405
426
plaintext_secrets = {
406
427
SECRET_NAME_1 = "secret_value_1"
407
428
SECRET_NAME_2 = "secret_value_2"
408
429
...
409
430
}
410
431
```
432
+
411
433
When applied, a secret with the given key and value will be created in the repositories.
412
434
The value of the secrets must be given in plain text, github provider is in charge of encrypting it.
413
435
**Attention:** You might want to get secrets via a data source from a secure vault and not add them in plain text to your source files; so you do not commit plaintext secrets into the git repository managing your github account.
0 commit comments