Skip to content

Commit

Permalink
fix: github_dependabot_organization_secret panic (integrations#1323)
Browse files Browse the repository at this point in the history
* fix: `github_dependabot_organization_secret` panic

Closes integrations#1208

* Fix linting/compilation error

Co-authored-by: Keegan Campbell <me@kfcampbell.com>
  • Loading branch information
nikolay and kfcampbell authored Oct 12, 2022
1 parent 03bc539 commit 4379b48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion github/resource_github_dependabot_organization_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"log"
"net/http"
"strconv"

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

for _, id := range ids {
selectedRepositoryIDs = append(selectedRepositoryIDs, id.(string))
selectedRepositoryIDs = append(selectedRepositoryIDs, strconv.Itoa(id.(int)))
}
}

Expand Down

0 comments on commit 4379b48

Please sign in to comment.