Skip to content

Implement code security configuration resource for organziations #2664

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lovwal
Copy link

@lovwal lovwal commented May 19, 2025

Resolves #2412


Before the change?

Resource not available.

After the change?

Implement code security configuration resource on organizational level.

The implementation does not support a few attributes present in the github rest api for code security configuration as these attributes
are not present in the go-github library. Some (non-exhaustive) attributes include
code_scanning_delegated_alert_dismissal,
secret_scanning_delegated_alert_dismissal and
secret_scanning_generic_secrets.

Furthermore, I tried to implement default_for_new_repos as an attribute. While it is possible to to set that attribute through a separate API call, it is not currently possible to read the attribute through the go-github sdk, meaning subsequent updates are not (currently) possible. Hence, it was left out of this commit.

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

The implementation does not support a few attributes present in the
github rest api for code security configuration as these attributes
 are not present in the go-github library. Some (non-exhaustive) attributes include
code_scanning_delegated_alert_dismissal,
secret_scanning_delegated_alert_dismissal and
secret_scanning_generic_secrets.

Furthermore, I tried to implement default_for_new_repos as an attribute.
While it is possible to to set that attribute through a separate API
call, it is not currently possible to read the attribute through the
go-github sdk, meaning subsequent updates are not (currently) possible.
Hence, it was left out of this commit.

Fixes integrations#2412
@nickfloyd nickfloyd moved this from 🆕 Triage to 👀 In review in 🧰 Octokit Active Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT]: Code Security Configuration
2 participants