Releases: integrations/terraform-provider-github
v6.8.3
v6.8.2
This merge brings the following enhancements from v6.7.5:
- Added destroy_on_drift field to both github_actions_secret and github_actions_organization_secret
- Improved drift detection logic with configurable behavior
- Added schema migrations for backward compatibility
- Enhanced test coverage for drift detection scenarios
- Fixed ForceNew field configurations
Full Changelog: v6.8.1...v6.8.2
v6.8.1
v6.8.0
What's Changed
π New Features
- fix/feature: Adds support for max_file_size, max_file_path_length, file_extension_restriction, and unknown rulesets for repos and orgs by @nickfloyd in #2821
- feat: Handle error management on resources when dealing with archived repos. by @nickfloyd in #2837
- feat: Update removal operations for related resources to now gracefully handle deleting archived repositories by @nickfloyd in #2844
- feat: support workflow permissions in repository by @M0NsTeRRR in #2309
- feat: implement missing data source github_actions_environment_public_key by @nobbs in #2500
- feat: Adds migration for destory-on-drift for actions organization secret to prevent state from getting out of sync with the schema by @nickfloyd in #2820
- feat: Adds DiffSuppressFunc and DiffSuppressOnRefresh to resources that have etag properties to suppress etag-related diffs by @nickfloyd in #2840
- feat: Max per page by @dee-kryvenko in #2703
- feat(core): add fork functionality by @hminaee-tc in #2678
π Bugfixes
- fix: Add destroy-on-drift property to the GitHub Action Secret resource schema by @nickfloyd in #2832
- fix: error when updating ruleset without bypass actors by @dblinkhorn in #2824
- fix(resource/github_organization_custom_properties): allow for import by @pippitt in #2834
- fix: Support for Github Environment Secrets' Lifecycle Ignore Changes by @bshore-bf in #2651
- fix: update of github release by @findmyname666 in #2350
- fix: commit signoff is enforced by the organization by @steveteuber in #2763
- fix: Repository Custom Properties Refresh by @SharpEdgeMarshall in #2691
- fix: Check current default branch before modifying by @stevehipwell in #2863
- fix: import command syntax for GitHub custom property documentation by @deiga in #2871
- fix(issue-2873): send empty slice for bypass_actors to avoid 422 on null by @VyacheslavPerfilyev in #2875
- fix(transport): change rate limit log messages from DEBUG to WARN level by @tdabasinskas in #2687
π οΈ Maintenance
- maint: gofmt clean up by @nickfloyd in #2888
- maint: Update to go-github v67 by @nickfloyd in #2810
- build(deps): bump github/codeql-action from 3.28.0 to 4.31.0 by @dependabot[bot] in #2811
- build(deps): bump actions/checkout from 4.2.2 to 5.0.0 by @dependabot[bot] in #2812
- build(deps): bump actions/stale from 9.0.0 to 10.1.0 by @dependabot[bot] in #2813
- build(deps): bump actions/setup-go from 5.2.0 to 6.0.0 by @dependabot[bot] in #2814
- build(deps): bump peter-evans/create-or-update-comment from 4 to 5 by @dependabot[bot] in #2815
- build(deps): update several GitHub Actions to the next major versions by @ViacheslavKudinov in #2816
- build(deps): bump github/codeql-action from 4.31.0 to 4.31.2 in the github-actions group by @dependabot[bot] in #2860
- chore(Actions): Skip to run "Add issue to project" workflow on the forks by @ViacheslavKudinov in #2833
- chore: Tune Goreleaser config and workflow to address warnings by @ViacheslavKudinov in #2835
- chore(actions): Add scan of Actions workflows by CodeQL by @ViacheslavKudinov in #2859
- chore(actions): Add workflow that runs Terraform configuration validation by @ViacheslavKudinov in #2887
- chore(actions): Adds labeler Action to automatically add labels on PR:s by @ViacheslavKudinov in #2853
- chore(actions): Disable to run "Issue/PR response" workflow on forks by @ViacheslavKudinov in #2854
- chore(Actions): disable label synchronization in pull request labeler by @ViacheslavKudinov in #2879
- chore: Update pull request template checklist by @nickfloyd in #2827
π Documentation
- docs: Add destroy_on_drift docs to organization secret by @nickfloyd in #2825
- docs(github_repository_tag_protection): Remove documentation for the resource no longer supported by provider since v6.4.0 by @ViacheslavKudinov in #2826
- docs(github_organization_custom_role): Fix typo organization(_)repository by @kohbis in #2831
- docs: Adds do_not_enforce_on_create option for github_repository_ruleset docs by @nenosrep in #2667
- docs: Fix doc to revert wrong file deletion by @ViacheslavKudinov in #2847
New Contributors
- @nenosrep made their first contribution in #2667
- @kohbis made their first contribution in #2831
- @deiga made their first contribution in #2871
- @VyacheslavPerfilyev made their first contribution in #2875
- @M0NsTeRRR made their first contribution in #2309
- @bshore-bf made their first contribution in #2651
- @nobbs made their first contribution in #2500
- @findmyname666 made their first contribution in #2350
- @steveteuber made their first contribution in #2763
- @tdabasinskas made their first contribution in #2687
- @hminaee-tc made their first contribution in #2678
Full Changelog: v6.7.0...v6.8.0
v6.7.5
v6.7.4
v6.7.4
This patch appropriately handles the cases when a Terraform resource has an Update function defined (which was recently added), the Terraform SDK requires that any field that can change must either have ForceNew: true (meaning changes require resource recreation) or for that field to be a computed-only field.
The destroy_on_drift field is a provider config setting that controls how drift detection works - it's not a field that maps to the GitHub API. When implementations try to change this field Terraform will execute the plan properly but fail on the apply because the Update function didn't know how to handle the destroy_on_drift change.
Lastly reads now handle setting encrypted_value and plaintext_value to nil to trigger an update when the "stored" update dates do not match.
Full Changelog: v6.7.3...v6.7.4
v6.7.3
v6.7.3
This patch addresses the issue where the Update function was missed during the cherry pick for github_actions_secret resource.
Tests were also added to avoid regressions in the future.
Full Changelog: v6.7.2...v6.7.3
v6.7.2
v6.7.2
Note: This patch contains the addition of the destroy_on_drift property to github_actions_secret resource because the exact same issue was present there as well.
Bug Fixes
Fixed drift detection bug that caused "Provider produced inconsistent result" errors in github_actions_organization_secret and github_actions_secret resources. The bug occurred when secrets were modified externally - the timestamp wasn't being updated after drift detection, causing infinite loops of false positive drift detection. | #2832
Features
Added destroy_on_drift property to github_actions_secret resource (repository-level secrets), and matches the functionality already available in github_actions_organization_secret. Also includes proper schema migration from v0 to v1 and ensures the property defaults to true for backward compatibility. | #2832
Full Changelog: v6.7.1...v6.7.2
v6.7.1
v6.7.1
Bug Fixes
- github_actions_organization_secret: Add state migration for
destroy_on_driftfield to fix regression from v6.7.0 (#2820)
This patch release fixes a regression introduced in v6.7.0 where existing github_actions_organization_secret resources would show invalid state for the new destroy_on_drift field.
The fix adds a schema migration that automatically sets destroy_on_drift=true for existing resources that don't have this field, preventing the need for manual state fixes.
Fixes: #2804
Full Changelog: v6.7.0...v6.7.1
v6.7.0
What's Changed
π New Features
- feat: Added organization role support by @stevehipwell in #2487
- feat: Add file path protection to rulesets by @grahamhar in #2415
- feat: Support team organization role assignment by @felixlut in #2322
- feat: Add support for 'exempt' github_repository_ruleset bypass_mode by @joshhunt in #2764
- feat: Add
github_actions_organization_secret_repositoryresource by @ylascombe in #2760 - feat: π³οΈ Custom properties resource & data by @alileza in #2107
- feat: Add support for
DeployKeyactor type in repository and organization rulesets by @tiulpin in #2748
π Bugfixes
- fix: Allow parallel_requests to be set on github.com by @SamuZad in #2715
- fix: Fixed issue labels adoption by @stevehipwell in #2430
- fix: Importing rulesets by @ihor-hrytskiv in #2488
- fix: Add missed parameter to the github_organization_ruleset by @yurii-kysil in #2545
- fix: Bypass actors not being deleted from repository rulesets by @dblinkhorn in #2780
- fix(resource/github_actions_environment_variable): handle existing va⦠by @nebrass in #2758
- fix: Allow missing types of rule bypasses by @languitar in #2726
- fix: Fixed nil deref bug for ruleset response by @eldad in #2762
- fix: Destroy the resource on drift by @yordis in #1351
- fix: Fixed repository resource churn by @stevehipwell in #2501
- fix: Fixed branch protection v3 status checks churn by @stevehipwell in #2502
- fix: Fixed team data source detailed repos by @stevehipwell in #2509
- fix: Fixed org teams data lookup parent id by @stevehipwell in #2507
π οΈ Maintenance
- deps: Ensures that all dependencies are up to date based on go.mod by @nickfloyd in #2788
- build(deps): bump the github-actions group across 1 directory with 2 updates by @dependabot[bot] in #2783
- build(deps): bump github.com/ulikunitz/xz from 0.5.8 to 0.5.14 by @dependabot[bot] in #2791
- build(deps): bump github.com/hashicorp/go-getter from 1.5.3 to 1.7.9 by @dependabot[bot] in #2790
- build(deps): bump github.com/go-viper/mapstructure/v2 from 2.0.0 to 2.4.0 by @dependabot[bot] in #2789
- build(deps): bump github.com/go-jose/go-jose/v3 from 3.0.3 to 3.0.4 by @dependabot[bot] in #2793
- maint: Updates makefile to handle missing the LC_UUID command and dydl errors when running make by @nickfloyd in #2774
- maint: Adds tests for PR-2502 by @nickfloyd in #2799
- maint: Adds coverage for bypass_modes in rulesets by @oikarinen in #2802
- maint: Change support message now that we don't do the Monday/Friday thing by @kfcampbell in #2615
- maint: Note that GitHub Support doesn't provide support for this integration by @davidstaheli in #2665
- maint: Deprecated classic project resources by @stevehipwell in #2506
π Documentation
- docs: Add documentation for github_organization_custom_properties by @nickfloyd in #2785
- docs: Add missing navigation for github_organization_role_team_assignment by @nickfloyd in #2787
- docs: Updates docs for PR #2488 by @nickfloyd in #2797
- docs: Clarify repository description in webhook schema by @AlexaDeWit in #2765
- docs: Fix anchor links of github_repository_ruleset documentation by @fatbasstard in #2798
New Contributors
- @davidstaheli made their first contribution in #2665
- @yordis made their first contribution in #1351
- @SamuZad made their first contribution in #2715
- @yurii-kysil made their first contribution in #2545
- @fatbasstard made their first contribution in #2798
- @dblinkhorn made their first contribution in #2780
- @joshhunt made their first contribution in #2764
- @AlexaDeWit made their first contribution in #2765
- @languitar made their first contribution in #2726
- @eldad made their first contribution in #2762
- @oikarinen made their first contribution in #2802
- @tiulpin made their first contribution in #2748
- @nebrass made their first contribution in #2758
- @ylascombe made their first contribution in #2760
Full Changelog: v6.6.0...v6.7.0