Skip to content

[Feature Request] GitHub Advanced Security #1104

@tjcorr

Description

@tjcorr

Support for GitHub Advanced Security and Secret Scanning.

The current repository resource does not support the parameter: security_and_analysis which is used to enable both GHAS and secret scanning on a repository:

Specify which security and analysis features to enable or disable. For example, to enable GitHub Advanced Security, use this data in the body of the PATCH request: {"security_and_analysis": {"advanced_security": {"status": "enabled"}}}. If you have admin permissions for a private repository covered by an Advanced Security license, you can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo} request.

This parameter is already supported in the go library with google/go-github#2132 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions