Skip to content

[FEAT]: enable repository code-quality setting (PREVIEW) #2877

Open

Description

@thisispr

Describe the need

Implements a call to the internal GitHub Enterprise endpoint
POST ///settings/code-quality to toggle the repository’s Code Quality feature.
This mirrors the GitHub UI action for enabling/disabling code scanning or quality checks (e.g., CodeQL), though it’s not part of the public REST API.

Details:

  • Endpoint: /settings/code-quality (internal GHE)
  • Request body: { "enabled": true }
  • Effect: Activates repository-level code quality analysis
  • Closest public equivalent: POST /repos/{owner}/{repo}/code-scanning/alerts

SDK Version

No response

API Version

No response

Relevant log output

Code of Conduct

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

Activity

  1. stevehipwell commented on Nov 13, 2025

    @stevehipwell
    Collaborator

    @thisispr it would be good functionality but support for the API would need to be implemented in google/go-github and we'd need to be running that version (we're currently a long way behind) to be in a position to implement this.

  2. Doug-Murphy commented on May 11, 2026

    @Doug-Murphy

    Hey @stevehipwell! I found this issue when I was looking to add support for this into our internal TF module. A quick search of this repo seems to indicate that the repo is now on v85 of go-github with v86.0.0 being released on 4 days ago.

    Is this now considered unblocked and able to be implemented? Sure would be awesome to have this able to be rolled out more broadly within our org.

  3. SanderBlom commented on Jul 16, 2026

    @SanderBlom

    Any updates on this as Github Code Quality goes moves to general availability on July 20, 2026

  4. deiga commented on Jul 16, 2026

    @deiga
    Collaborator

    @SanderBlom maintainer roadmap is still focused on fixing foundations.
    If someone wants to open a PR and patiently engage with our review timetables then it's likelier to land

  5. moved this from Backlog to In Progress in Terraform Provideron Nov 3, 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

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions