Skip to content

Releases: mineiros-io/terraform-github-repository

v0.10.1

10 Aug 06:59
0889e6c
Compare
Choose a tag to compare

Changelog

Fixed

  • Set vulnerability_alerts per default to true for public repositories and
    to false for private repositories if not explicitly set to avoid drifts
    when running terraform plan.

v0.10.0

29 Jun 21:17
64e074e
Compare
Choose a tag to compare

Changelog

Added

  • Add support for Terraform v1

v0.9.2

02 Jun 21:42
fc0c278
Compare
Choose a tag to compare

Changelog

Fixed

  • Fix terraform typing issue when defining branch protections for multiple branches

v0.9.1

31 May 09:54
e341508
Compare
Choose a tag to compare

Changelog

Added

  • Add support for GitHub Pages

v0.9.0

26 May 15:15
8e4aff4
Compare
Choose a tag to compare

Changelog

Added

  • Add support for Terraform v0.15

v0.8.0

26 May 15:14
8c883ab
Compare
Choose a tag to compare

Changelog

This is a BREAKING RELEASE.

Branch protection resources will be recreated and new features are added enforcing security by default.

Please review plans and report regressions and issues asap so we can improve documentation for upgrading.

Upgrade path/notes:

  • 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.
  • If you do not want to archive repositories on deletion set archive_on_destroy to false in repository configurations.

Expected differences in a plan after upgrading:

  • Addition to module.<NAME>.github_repository.repository:
    • Addition or changed default of argument archive_on_destroy = true
  • Destruction of module.<NAME>.github_branch_protection.branch_protection[*]
  • Creation of module.<NAME>.github_branch_protection_v3.branch_protection[*]
  • Replacement of module.<NAME>.github_team_repository.team_repository_by_slug[<SLUG>]
    • Triggered by change in team_id = "<NUMBER>" -> "<SLUG>"

Added

  • Add support for Github Provider v4 (Minimal compatible version is v4.5).
  • Add support for archive_on_destroy repository flag defaulting to true.
  • Add support for vulnerability_alerts repository flag.
  • 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.

Changed

  • Use github_branch_protection_v3 instead of github_branch_protection for performance and compatibility reasons. ATTENTION: This Change will trigger recreation of all branch protections when upgrading to v0.8.0.
  • 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.

Removed

  • BREAKING CHANGE: Removed support for Github Provider before v4.3

v0.7.0

01 Mar 17:58
4b223f9
Compare
Choose a tag to compare

Added

  • Add support for visibility parameter. Defaults to private and respects desired state as defined in deprecated private parameter.

Changed

  • Add deprecation of private parameter.
  • BREAKING CHANGE: Minimum Github Terraform Provider version increased to 2.9.0.

v0.6.1

09 Feb 21:35
64d8146
Compare
Choose a tag to compare

Added

  • Add support for managing github secrets via plaintext_secrets argument (#58/#59 kudos to @mrodm)

v0.6.0

26 Dec 19:00
0b86db8
Compare
Choose a tag to compare

Added

  • Add support for Terraform v0.14.x

v0.5.1

19 Oct 16:14
18a704b
Compare
Choose a tag to compare

Fixed

Changed

  • Adjust default branch in code to Github new default branch naming