Skip to content

Remove ForceNew from GithubActionsOrganizationSecret - #2559

Closed
mjeffryes wants to merge 3 commits into
integrations:mainfrom
mjeffryes:patch-1
Closed

mjeffryes wants to merge 3 commits into
integrations:mainfrom
mjeffryes:patch-1

Conversation

@mjeffryes

@mjeffryes mjeffryes commented Feb 7, 2025 •

Copy link
Copy Markdown

Resolves #2518

Before the change?

The provider currently forces a replace on any change to the secret plain text, encrypted value or visibility. However, the Github API allows in-place updates to secrets so this is effectively just forcing an unnecessary delete. This causes performance issues as in the linked ticket and also correctness issues when create_before_destroy is used. (As it is by default, when this provider is used from Pulumi, see pulumi/pulumi-github#250 (comment))

After the change?

Changes to the plaintext, encrypted value or visibility will cause an in place update of the secret. This results in faster updates and correct zero downtime updates to secrets.

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@nickfloyd nickfloyd moved this from 🆕 Triage to 👀 In review in 🧰 Octokit Active Feb 27, 2025
@deiga

deiga commented Jan 1, 2026

Copy link
Copy Markdown
Collaborator

Hey @mjeffryes 👋

Thanks for your contribution! We're discussing what the original design decision was behind the ForceNew to determine if removing it is feasible.

We're currently trying to get v6.9.1 released and are not adding more changes to it. After that we're trying to get v7.0.0 released which has bigger fundamental changes. It's unclear if there will be another v6.x before we can get to v7

While you're PR doesn't currently require a rebase, would you anyway be available to rebase it?

@stevehipwell stevehipwell added this to the v6.10.0 Release milestone Jan 2, 2026
@mjeffryes mjeffryes closed this Jan 30, 2026
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in 🧰 Octokit Active Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: 'plaintext_value' forces delete and create instead of inplace update

3 participants