Skip to content
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

Update security_and_analysis settings only when there are changes #2397

Commits on Sep 20, 2024

  1. Update security_and_analysis settings only when there are changes

    The `resourceGithubRepositoryUpdate` function currently passes
    the current state of security_and_analysis to the PATCH /repo
    request. If the repo has an enforced security configuration,
    this can result in the API returning a 422 response because
    changing security settings is not allowed in this case.
    Even though the security_and_analysis settings remain the same,
    and only some other settings are changed, the request will still
    fail.
    
    To avoid the request failing when security_and_analysis remains
    the same, we will only pass it in the request payload when changes
    have been made.
    jamestran201 committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    a409414 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. Configuration menu
    Copy the full SHA
    e3a53f1 View commit details
    Browse the repository at this point in the history