diff --git a/github/resource_github_repository_environment.go b/github/resource_github_repository_environment.go index 936fedfe7d..6d4bf61be4 100644 --- a/github/resource_github_repository_environment.go +++ b/github/resource_github_repository_environment.go @@ -4,7 +4,6 @@ import ( "context" "log" "net/http" - "strconv" "github.com/google/go-github/v42/github" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" @@ -180,7 +179,7 @@ func resourceGithubRepositoryEnvironmentUpdate(d *schema.ResourceData, meta inte return err } - d.SetId(buildTwoPartID(repoName, strconv.FormatInt(resultKey.GetID(), 10))) + d.SetId(buildTwoPartID(repoName, resultKey.GetName())) return resourceGithubRepositoryEnvironmentRead(d, meta) }