Skip to content

[BUG]: github_repository gets 403 error on Pages API even though there's no page #2335

@garysassano

Description

@garysassano

Expected Behavior

Terraform plan to succeed.

Actual Behavior

  # github_repository.this["my-repo"] will be updated in-place
  ~ resource "github_repository" "this" {
        id                          = "my-repo"
        name                        = "my-repo"
        # (36 unchanged attributes hidden)

      + template {
          + include_all_branches = false
          + owner                = "foobar"
          + repository           = "repo-template"
        }
    }

Plan: 0 to add, 4 to change, 0 to destroy.

Error: GET https://api.github.com/repos/foobar/repo-template/pages: 403 Resource not accessible by integration []

  with github_repository.this["repo-template"],
  on config.tf line 7, in resource "github_repository" "this":
   7: resource "github_repository" "this" {

Terraform Version

1.9.3

Affected Resource(s)

  • github_repository

Terraform Configuration Files

No response

Steps to Reproduce

No response

Debug Output

No response

Panic Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleUsed by stalebot to clean houseStatus: Up for grabsIssues that are ready to be worked on by anyoneType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    ✅ Done

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions