Skip to content

Commit

Permalink
[Fix] Type assertion failure on github_dependabot_organization_secret…
Browse files Browse the repository at this point in the history
…_repositories.selected_repository_ids
  • Loading branch information
nickfloyd authored Jan 2, 2024
2 parents 1e2526d + 86cb4eb commit 7858e45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7858e45

Please sign in to comment.