Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: cannot set empty status checks in github_branch_protection_v3 #2261

Closed
1 task done
ljw4010 opened this issue May 14, 2024 · 9 comments
Closed
1 task done

[BUG]: cannot set empty status checks in github_branch_protection_v3 #2261

ljw4010 opened this issue May 14, 2024 · 9 comments
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@ljw4010
Copy link

ljw4010 commented May 14, 2024

Expected Behavior

  required_status_checks {
    strict   = true
  }

this configuration can work fine

Actual Behavior

got issues:


│ No subschema in "anyOf" matched.
│ No subschema in "oneOf" matched.
│ Not all subschemas of "allOf" matched.
│ For 'anyOf/1', {"strict"=>true} is not a null. []
│ 
│   with github_branch_protection_v3.create_peotection_rules["master"],

Terraform Version

Terraform: v1.8.0

Affected Resource(s)

github_branch_protection_v3

Terraform Configuration Files

required_status_checks {
    strict   = true
  }

Steps to Reproduce


│ No subschema in "anyOf" matched.
│ No subschema in "oneOf" matched.
│ Not all subschemas of "allOf" matched.
│ For 'anyOf/1', {"strict"=>true} is not a null. []
│ 
│   with github_branch_protection_v3.create_peotection_rules["master"],

Debug Output

No response

Panic Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ljw4010 ljw4010 added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels May 14, 2024
@ljw4010
Copy link
Author

ljw4010 commented May 14, 2024

@nickfloyd nickfloyd moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Active May 20, 2024
@cfisher281
Copy link

Any idea on a timeline? This has essentially broken the ability to manage branch protection rules for my organization.

@ljw4010
Copy link
Author

ljw4010 commented Jun 12, 2024 via email

@ljw4010
Copy link
Author

ljw4010 commented Jun 12, 2024

Any idea on a timeline? This has essentially broken the ability to manage branch protection rules for my organization.

you can use github_branch_protection to manage branch protection rules, currently I am using it, its working for me

@cfisher281
Copy link

We are already using github_branch_protection_v3. That would take a lot of work to move this over.

@ljw4010
Copy link
Author

ljw4010 commented Jun 12, 2024

We are already using github_branch_protection_v3. That would take a lot of work to move this over.

We are already using github_branch_protection_v3. That would take a lot of work to move this over.

then you can only wait until this bug is being fixed,hh

@cfisher281
Copy link

I understand, that's why I asked if there was a timeline.

@georgekaz
Copy link
Contributor

This is also a dupe of #2093

@kfcampbell
Copy link
Member

Thanks @georgekaz, I'll close this and let's track it in #2093 for the future.

@kfcampbell kfcampbell closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2024
@github-project-automation github-project-automation bot moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Active Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

4 participants