From 7845bc2cd80d429ff5a378f3b78627dd5c0f15dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Bos?= Date: Tue, 28 Nov 2023 11:36:35 +0100 Subject: [PATCH] Change type assertion to type cast A repository ID is not an int64 as can be seen on https://github.com/integrations/terraform-provider-github/blob/46650cb363ded7c10bc780998fa3166d3dd63daf/github/data_source_github_repository.go#L216 --- ...source_github_dependabot_organization_secret_repositories.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/resource_github_dependabot_organization_secret_repositories.go b/github/resource_github_dependabot_organization_secret_repositories.go index aa55641446..63d7ae75a9 100644 --- a/github/resource_github_dependabot_organization_secret_repositories.go +++ b/github/resource_github_dependabot_organization_secret_repositories.go @@ -55,7 +55,7 @@ func resourceGithubDependabotOrganizationSecretRepositoriesCreateOrUpdate(d *sch ids := selectedRepositories.(*schema.Set).List() for _, id := range ids { - selectedRepositoryIDs = append(selectedRepositoryIDs, id.(int64)) + selectedRepositoryIDs = append(selectedRepositoryIDs, int64(id.(int))) } _, err = client.Dependabot.SetSelectedReposForOrgSecret(ctx, owner, secretName, selectedRepositoryIDs)