Skip to content

feat(github): add repository, ruleset, and branch protection rule#64

Merged
fredleger merged 1 commit intomainfrom
feat/github-repos
Feb 21, 2025
Merged

feat(github): add repository, ruleset, and branch protection rule#64
fredleger merged 1 commit intomainfrom
feat/github-repos

Conversation

@fredleger
Copy link
Contributor

  • feat: add github repository
  • feat: add github repo branch protection rules
  • chore: enforce defaults
  • fix: minor fixes
  • feat: add team admins var
  • feat(github): add repository ruleset

@fredleger fredleger requested review from Copilot and neilime February 12, 2025 20:57
@fredleger
Copy link
Contributor Author

fredleger commented Feb 12, 2025

this will produce the example repo config: https://github.com/cigales-cloud/test/settings

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 11 out of 27 changed files in this pull request and generated 3 comments.

Files not reviewed (16)
  • github/branch-protection/.terraform.lock.hcl: Language not supported
  • github/branch-protection/.tflint.hcl: Language not supported
  • github/branch-protection/.tool-versions: Language not supported
  • github/branch-protection/gh-branch-protection.tf: Language not supported
  • github/branch-protection/main.tf: Language not supported
  • github/branch-protection/providers.tf: Language not supported
  • github/branch-protection/variables.tf: Language not supported
  • github/repository-ruleset/.terraform.lock.hcl: Language not supported
  • github/repository-ruleset/.tflint.hcl: Language not supported
  • github/repository-ruleset/.tool-versions: Language not supported
  • github/repository-ruleset/gh-repo-ruleset.tf: Language not supported
  • github/repository-ruleset/main.tf: Language not supported
  • github/repository-ruleset/providers.tf: Language not supported
  • github/repository-ruleset/variables.tf: Language not supported
  • github/repository/.terraform.lock.hcl: Language not supported
  • github/repository/.tflint.hcl: Language not supported
Comments suppressed due to low confidence (2)

github/repository-ruleset/README.md:62

  • [nitpick] The variable name 'bypass_actors' is ambiguous. It should be renamed to 'allowed_bypass_actors'.
[bypass_actors](#input_bypass_actors) | List of actors allowed to bypass this ruleset | `list(any)` | <pre>[<br>  {<br>    "actor_id": 0,<br>    "actor_type": "OrganizationAdmin",<br>    "bypass_mode": "always"<br>  },<br>  {<br>    "actor_id": 5,<br>    "actor_type": "RepositoryRole",<br>    "bypass_mode": "always"<br>  },<br>  {<br>    "actor_id": 11722557,<br>    "actor_type": "Team",<br>    "bypass_mode": "always"<br>  }<br>]</pre> | no

github/repository-ruleset/README.md:65

  • [nitpick] The enforcement type 'evaluate' should be 'evaluating' for consistency.
[enforcement](#input_enforcement) | The type of enforcement (disabled, active, evaluate) | `string` | "active" | no

@fredleger fredleger changed the title feat/github repos feat(github): add repository, ruleset, and branch protection rule Feb 12, 2025
@fredleger fredleger requested a review from Copilot February 12, 2025 21:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 11 out of 27 changed files in this pull request and generated 5 comments.

Files not reviewed (16)
  • github/branch-protection/.terraform.lock.hcl: Language not supported
  • github/branch-protection/.tflint.hcl: Language not supported
  • github/branch-protection/.tool-versions: Language not supported
  • github/branch-protection/gh-branch-protection.tf: Language not supported
  • github/branch-protection/main.tf: Language not supported
  • github/branch-protection/providers.tf: Language not supported
  • github/branch-protection/variables.tf: Language not supported
  • github/repository-ruleset/.terraform.lock.hcl: Language not supported
  • github/repository-ruleset/.tflint.hcl: Language not supported
  • github/repository-ruleset/.tool-versions: Language not supported
  • github/repository-ruleset/gh-repo-ruleset.tf: Language not supported
  • github/repository-ruleset/main.tf: Language not supported
  • github/repository-ruleset/providers.tf: Language not supported
  • github/repository-ruleset/variables.tf: Language not supported
  • github/repository/.terraform.lock.hcl: Language not supported
  • github/repository/.tflint.hcl: Language not supported

@fredleger fredleger force-pushed the feat/github-repos branch 3 times, most recently from e7ff200 to b494316 Compare February 21, 2025 10:34
@fredleger fredleger requested a review from Copilot February 21, 2025 10:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 11 out of 27 changed files in this pull request and generated 2 comments.

Files not reviewed (16)
  • github/branch-protection/.terraform.lock.hcl: Language not supported
  • github/branch-protection/.tflint.hcl: Language not supported
  • github/branch-protection/.tool-versions: Language not supported
  • github/branch-protection/gh-branch-protection.tf: Language not supported
  • github/branch-protection/main.tf: Language not supported
  • github/branch-protection/providers.tf: Language not supported
  • github/branch-protection/variables.tf: Language not supported
  • github/repository-ruleset/.terraform.lock.hcl: Language not supported
  • github/repository-ruleset/.tflint.hcl: Language not supported
  • github/repository-ruleset/.tool-versions: Language not supported
  • github/repository-ruleset/gh-repo-ruleset.tf: Language not supported
  • github/repository-ruleset/main.tf: Language not supported
  • github/repository-ruleset/providers.tf: Language not supported
  • github/repository-ruleset/variables.tf: Language not supported
  • github/repository/.terraform.lock.hcl: Language not supported
  • github/repository/.tflint.hcl: Language not supported
Comments suppressed due to low confidence (1)

github/repository-ruleset/README.md:7

  • The term 'GitHub app' should be 'GitHub app'.
you must create a GitHub app or a classic token with admin rights

@fredleger fredleger merged commit c26e12b into main Feb 21, 2025
1 check passed
@fredleger fredleger deleted the feat/github-repos branch February 21, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants