File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ## [ 0.10.1]
11+
12+ ### Fixed
13+
14+ - Set ` vulnerability_alerts ` per default to ` true ` for public repositories and
15+ to ` false ` for private repositories if not explicitly set to avoid drifts
16+ when running ` terraform plan ` .
17+
1018## [ 0.10.0]
1119
1220### Added
@@ -262,11 +270,12 @@ Please review plans and report regressions and issues asap so we can improve doc
262270
263271<!-- markdown-link-check-disable -->
264272
265- [ unreleased ] : https://github.com/mineiros-io/terraform-github-repository/compare/v0.10.0 ...HEAD
266- [ 0.10.0 ] : https://github.com/mineiros-io/terraform-github-repository/compare/v0.9.2 ...v1.0.0
273+ [ unreleased ] : https://github.com/mineiros-io/terraform-github-repository/compare/v0.10.1 ...HEAD
274+ [ 0.10.1 ] : https://github.com/mineiros-io/terraform-github-repository/compare/v0.10.0 ...v0.10.1
267275
268276<!-- markdown-link-check-enable -->
269277
278+ [ 0.10.0 ] : https://github.com/mineiros-io/terraform-github-repository/compare/v0.9.2...v0.10.0
270279[ 0.9.2 ] : https://github.com/mineiros-io/terraform-github-repository/compare/v0.9.1...v0.9.2
271280[ 0.9.1 ] : https://github.com/mineiros-io/terraform-github-repository/compare/v0.9.0...v0.9.1
272281[ 0.9.0 ] : https://github.com/mineiros-io/terraform-github-repository/compare/v0.8.0...v0.9.0
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ locals {
3535 gh_labels = local. var_gh_labels == null ? lookup (var. defaults , " issue_labels_merge_with_github_labels" , true ) : local. var_gh_labels
3636
3737 issue_labels_merge_with_github_labels = local. gh_labels
38+ # Per default, GitHub activates vulnerability alerts for public repositories and disables it for private repositories
39+ vulnerability_alerts = var. vulnerability_alerts != null ? var. vulnerability_alerts : local. private ? false : true
3840}
3941
4042locals {
@@ -106,7 +108,7 @@ resource "github_repository" "repository" {
106108 topics = local. topics
107109
108110 archive_on_destroy = var. archive_on_destroy
109- vulnerability_alerts = var . vulnerability_alerts
111+ vulnerability_alerts = local . vulnerability_alerts
110112
111113 dynamic "template" {
112114 for_each = local. template
You can’t perform that action at this time.
0 commit comments