Skip to content

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

Closed

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

Activity

  1. added
    Status: Triage
    Type: Bug
    on Jul 30, 2024
  2. added
    Status: Up for grabs
    and removed
    Status: Triage
    on Aug 3, 2024
  3. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Aug 3, 2024
  4. jurgenweber commented on Oct 23, 2024

    @jurgenweber
    Contributor

    I have tried working aroudn this error with giving my Github app more permissions + trying an ignore_changes;

      lifecycle {
        ignore_changes = [
          pages
        ]
      }
    

    Any other ideas? This is completely breaking.

  5. jurgenweber commented on Oct 23, 2024

    @jurgenweber
    Contributor

    oh, yeah. So actually accepting the permissions upgrade for the app helps..... It now works as expected.

  6. garysassano commented on Oct 23, 2024

    @garysassano
    ContributorAuthor

    What permission did you add?

  7. github-actions commented on Dec 6, 2025

    @github-actions

    👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

  8. added
    Status: Stale
    on Dec 6, 2025
  9. moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Activeon Feb 19, 2026
  10. garysassano commented on Feb 21, 2026

    @garysassano
    ContributorAuthor

    Keep.

  11. reopened this on Feb 23, 2026
  12. moved this from Done to In Progress in Terraform Provideron Feb 23, 2026
  13. removed
    Status: Stale
    on Mar 22, 2026
  14. self-assigned this
    on Mar 22, 2026
  15. added this to the v6.12.0 milestone on Apr 18, 2026
  16. modified the milestones: v6.12.0, v6.13.0 on Apr 20, 2026
  17. moved this from In Progress to Done in Terraform Provideron Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Status: Up for grabsType: Bug

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions