Skip to content

[BUG]: 403 failure results in mismatched state #3142

Closed

Description

@LConn-Insight

Expected Behavior

Expected GitHub pages to be appropriately applied per the terraform plan.

Image

Actual Behavior

On an initial deployment for a GitHub Page, the terraform apply failed due to our GitHub app not having the appropriate permissions.

Image

After fixing the permissions and rerunning the same workflow, the terraform plan no longer found any changes that needed to be applied. The screenshot above shows the original plan, and the second there were no changes for the github_repository.module. It's as if the first run somehow modified the state to show that a page was actually created, even though it failed. Visiting the GitHub repo settings showed that a page had not been created.

Even after manually creating the page, the terraform plan was still not picking up any changes.

It seems like there's some motivation to refactor pages into its own resource on #3133, #2087, and #1913.

Terraform Version

= 1.7

Affected Resource(s)

  • github_repository.module.pages

Terraform Configuration Files

Steps to Reproduce

No response

Debug Output

Panic Output

Code of Conduct

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

Activity

  1. added
    Type: Bug
    Status: Triage
    on Jan 29, 2026
  2. github-actions commented on Jan 29, 2026

    @github-actions

    👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

  3. added this to the v6.12.0 milestone on Apr 18, 2026
  4. modified the milestones: v6.12.0, v6.13.0 on Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageType: Bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions