Skip to content

Org Repositories Missing security_and_analysis Member #2959

@squatched

Description

@squatched

When getting organization repositories, there is a security_and_analysis member with 3x feature flags included. This is not included in the resulting Repo object.

Github Ref: https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-organization-repositories

Something like this is expected:

repo = github.Github().get_organization("my_org").get_repo("my_repo")

assert repo.security_and_analysis.advanced_security.status == "enabled"
assert repo.security_and_analysis.secret_scanning.status == "enabled"
assert repo.security_and_analysis.secret_scanning_push_protection.status == "enabled"

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