Skip to content

[BUG]: Changes in secret values for github_actions_organization_secret should occur in-place #2782

@jkstpierre

Description

@jkstpierre

Expected Behavior

When changing the plaintext_value or encrypted_value of an existing github_actions_organization_secret resource, the secret value should be updated in-place as per the GitHub API spec here: https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret.

Actual Behavior

Terraform detects the github_actions_organization_secret as needing to be replaced and will delete and recreate the secret resource.

Terraform Version

Irrelevant to the bug in question

Affected Resource(s)

  • github_actions_organization_secret

Terraform Configuration Files

Steps to Reproduce

Create an github_actions_organization_secret resource with an initial value on the first apply. Then change the value of the secret stored and generate a plan. Terraform will show in its plan that it intends to replace the secret rather than update it in-place.

Debug Output

Panic Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    🆕 Triage

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions