Skip to content

Integrate v6.8.3 into main#2902

Merged
nickfloyd merged 23 commits intomainfrom
integrate-v6.8.2-into-main
Nov 18, 2025
Merged

Integrate v6.8.3 into main#2902
nickfloyd merged 23 commits intomainfrom
integrate-v6.8.2-into-main

Conversation

@nickfloyd
Copy link
Copy Markdown
Member

@nickfloyd nickfloyd commented Nov 14, 2025

This integrates the changes from the release patch v6.8.2 into main.

Note: this also encapsulates the patch from v6.7.5 as well that we're missed after the release was made.


@nickfloyd nickfloyd moved this from Backlog to In Review in Terraform Provider Nov 14, 2025
@nickfloyd nickfloyd self-assigned this Nov 15, 2025
@nickfloyd nickfloyd added the Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR label Nov 15, 2025
Copy link
Copy Markdown
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced about the changes to the secrets as I don't think we need to make every change a force new. Even though we don't have support for writable arguments we could adopt some of the new syntax and version the value so we only update it when the version is explicitly changed. This would still support the destroy_on_drift pattern (although something like recrate_on_drift would make this functionality less concerning for end-users).

resource "github_actions_organization_secret" "example_secret" {
  secret_name     = "example_secret_name"
  visibility      = "private"
  plaintext_value = var.some_secret_string
  value_version   = 0
}

I say this coming from a position where I need to be able to update a secret (with a fixed name) in place and I wouldn't be happy with the potential for it to be un-set as any point in the process. As such I can't use the latest patch versions of the provider until this is resolved.

@nickfloyd nickfloyd changed the title Integrate v6.8.2 into main Integrate v6.8.3 into main Nov 17, 2025
Copy link
Copy Markdown
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the max_file_size parameter is incorrectly documented and missing validation based on the GitHub API docs?

See #2894

"max_file_size": []any{
map[string]any{
"max_file_size": float64(10485760), // 10MB
"max_file_size": 10485760, // 10MB
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look right, the GitHub API specifies that the max size is in megabytes and supports a value between 1 & 100.

"max_file_size": []any{
map[string]any{
"max_file_size": float64(5242880), // 5MB
"max_file_size": 5242880, // 5MB
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

Copy link
Copy Markdown
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just these two to fix.

nickfloyd and others added 2 commits November 18, 2025 12:21
Co-authored-by: Steve Hipwell <steve.hipwell@gmail.com>
Co-authored-by: Steve Hipwell <steve.hipwell@gmail.com>
Copy link
Copy Markdown
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found a few more.

if maxFileSizeRules[0]["max_file_size"] != int64(10485760) {
t.Errorf("Expected max_file_size to be 10485760, got %v", maxFileSizeRules[0]["max_file_size"])
if maxFileSizeRules[0]["max_file_size"] != int64(100) {
t.Errorf("Expected max_file_size to be 104857600, got %v", maxFileSizeRules[0]["max_file_size"])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
t.Errorf("Expected max_file_size to be 104857600, got %v", maxFileSizeRules[0]["max_file_size"])
t.Errorf("Expected max_file_size to be 100, got %v", maxFileSizeRules[0]["max_file_size"])

Comment on lines 414 to 416
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if maxFileSizeRules[0]["max_file_size"] != int64(5) {
t.Errorf("Expected max_file_size to be 5, got %v", maxFileSizeRules[0]["max_file_size"])
}

Comment on lines 305 to 307
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if len(maxFileSizeRules) != 1 || maxFileSizeRules[0]["max_file_size"] != int64(1) {
t.Error("Expected max_file_size rule with value 1")
}

Copy link
Copy Markdown
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nickfloyd nickfloyd merged commit e72a4fb into main Nov 18, 2025
8 checks passed
@nickfloyd nickfloyd deleted the integrate-v6.8.2-into-main branch November 18, 2025 19:30
@github-project-automation github-project-automation bot moved this from In Review to Done in Terraform Provider Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR

Projects

Development

Successfully merging this pull request may close these issues.

2 participants