Skip to content

[BUG]: Swallow 404 Not Found when deleting environments #3131

Closed

Description

@acouvreur

Expected Behavior

A lot of resources should be considered deleted when they cannot be found.

When an environment no longer exist and terraform tries to delete it, it should swallow 404 errors and go on.

Actual Behavior

Applying when an environment that must be deleted no longer exist fails.

Terraform Version

6.9.1

Affected Resource(s)

  • github_repository_environment

Terraform Configuration Files

Steps to Reproduce

Create an environment through TF
Delete the environment or the repository externally (Bad, I know :))
The apply fails although it is in the desired state

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 27, 2026
  2. github-actions commented on Jan 27, 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. removed
    Status: Triage
    on Jan 28, 2026
  4. added this to the v6.11.0 Release milestone on Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: Bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions