Skip to content

Commit 25f682b

Browse files
nikolaykfcampbell
andauthored
fix: github_dependabot_organization_secret panic (#1323)
* fix: `github_dependabot_organization_secret` panic Closes #1208 * Fix linting/compilation error Co-authored-by: Keegan Campbell <[email protected]>
1 parent 553785b commit 25f682b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

github/resource_github_dependabot_organization_secret.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"fmt"
77
"log"
88
"net/http"
9+
"strconv"
910

1011
"github.com/google/go-github/v47/github"
1112
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
@@ -95,7 +96,7 @@ func resourceGithubDependabotOrganizationSecretCreateOrUpdate(d *schema.Resource
9596
ids := selectedRepositories.(*schema.Set).List()
9697

9798
for _, id := range ids {
98-
selectedRepositoryIDs = append(selectedRepositoryIDs, id.(string))
99+
selectedRepositoryIDs = append(selectedRepositoryIDs, strconv.Itoa(id.(int)))
99100
}
100101
}
101102

0 commit comments

Comments
 (0)