Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f9312e0
Updates go-github dep to v68
nickfloyd Nov 13, 2025
d5c316c
Vendoring updates
nickfloyd Nov 13, 2025
211cc10
Update to go-github v77
nickfloyd Nov 13, 2025
aaf8089
vendor
nickfloyd Nov 13, 2025
13f6e20
add project item, deprecate project card
nickfloyd Nov 13, 2025
5c5babb
Add project item to the resource map
nickfloyd Nov 13, 2025
6a6163a
make org project read-only
nickfloyd Nov 13, 2025
8064292
Deprecate project column
nickfloyd Nov 13, 2025
bb3b6ed
API renames: edit to update
nickfloyd Nov 13, 2025
808de22
API renames: edit to update
nickfloyd Nov 13, 2025
3a82a12
Use new CreateRef API
nickfloyd Nov 13, 2025
06076f2
Defer ruleset changes - they need to be done in a separate branch to …
nickfloyd Nov 13, 2025
b12b4ad
Adds / Updates rulesets
nickfloyd Nov 14, 2025
24df569
Renames Project V2 and removes legacy/classic projects concerns
nickfloyd Nov 14, 2025
1229e45
Merge remote-tracking branch 'origin/main' into go-github-v68
nickfloyd Nov 14, 2025
5045600
manual updates from merge
nickfloyd Nov 14, 2025
fc9e86e
Linting fixes and updating APIs
nickfloyd Nov 14, 2025
451b1eb
Fix deprecated team APIs
nickfloyd Nov 14, 2025
3ac34e3
go-github v68 to v77 upgrade (without ProjectsV2)
nickfloyd Nov 14, 2025
7df8bfc
adds nolint for depricated teams APIs
nickfloyd Nov 14, 2025
e87f8a9
adds ruleset migrations to signal underlying implemetnation has changed.
nickfloyd Nov 14, 2025
10a6ee7
Adds tests for migrations
nickfloyd Nov 14, 2025
372b95f
Merge branch 'main' into go-github-v68
nickfloyd Nov 18, 2025
75a94a4
Merge branch 'main' into go-github-v68
nickfloyd Nov 18, 2025
be8aaad
updates test to ignore ordinal eval
nickfloyd Nov 18, 2025
2ea09b5
removes docs for deprecated resources
nickfloyd Nov 19, 2025
7f5a0fc
remove out of date comment
nickfloyd Nov 19, 2025
bc76119
removes dup log
nickfloyd Nov 19, 2025
b52b7e8
removes static values on test evaluatations.
nickfloyd Nov 19, 2025
67f2f4b
removes superfluous migrations for rulesets
nickfloyd Nov 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This project is used to manipulate GitHub resources (repositories, teams, files,
## Requirements

- [Terraform](https://www.terraform.io/downloads.html) 0.10.x
- [Go](https://golang.org/doc/install) 1.19.x (to build the provider plugin)
- [Go](https://golang.org/doc/install) 1.24.x (to build the provider plugin)

## Usage

Expand Down
2 changes: 1 addition & 1 deletion github/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging"
"github.com/shurcooL/githubv4"
"golang.org/x/oauth2"
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_actions_environment_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/url"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_actions_environment_variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/url"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_actions_organization_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_actions_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_actions_variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_app_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"testing"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"net/http"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_codespaces_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_codespaces_user_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_collaborators.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_dependabot_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_external_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"strconv"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/shurcooL/githubv4"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_organization_custom_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_organization_repository_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strconv"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_organization_role_teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_organization_role_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func dataSourceGithubOrganizationSecurityManagersRead(d *schema.ResourceData, me

allTeams := make([]any, 0)

//nolint:staticcheck // SA1019: ListSecurityManagerTeams is deprecated but still needed for legacy compatibility
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Do we have a plan when to migrate this to use ListTeamsAssignedToOrgRole instead? It seems Jan 1st ListSecurityManagerTeams might stop working?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Well sort of, there is an issue. @stevehipwell rightfully called out the issues with migrating to the team_slug from team_ids. RE: #2497

teams, _, err := client.Organizations.ListSecurityManagerTeams(ctx, orgName)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_organization_team_sync_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_organization_teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"strconv"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"github.com/shurcooL/githubv4"
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_organization_webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"net/http"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"strings"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_repository_branches.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_repository_custom_properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_repository_deploy_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_repository_environments.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_repository_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/url"
"strings"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_repository_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/url"
"testing"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/stretchr/testify/assert"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_repository_pull_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"strings"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_repository_teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_repository_webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
3 changes: 2 additions & 1 deletion github/data_source_github_team.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"strconv"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v77/github"

"github.com/shurcooL/githubv4"

Expand Down Expand Up @@ -176,6 +176,7 @@ func dataSourceGithubTeamRead(d *schema.ResourceData, meta any) error {
repositories_detailed = make([]any, 0, resultsPerPage) // removed this from the loop

for {
//nolint:staticcheck // SA1019: ListTeamReposByID is deprecated but still needed for legacy compatibility
repository, resp, err := client.Teams.ListTeamReposByID(ctx, orgId, team.GetID(), &options.ListOptions)
if err != nil {
return err
Expand Down
Loading
Loading