Skip to content

Master branch is not protected against accidental pushes. #130

Closed

Description

@raiden00pl

I just accidentally pushed to the master branch and it worked. Is this how it should be?

shouldn't this be set for the master branch here? @cederom @lupyuen @acassis @jerpelea

Image

Activity

  1. cederom commented on Feb 19, 2025

    @cederom
    Contributor

    Still the issue? I have no admin on the repo.. maybe @jerpelea @acassis ?

  2. raiden00pl commented on Feb 20, 2025

    @raiden00pl
    MemberAuthor

    I think only Apache INFRA can access to repo settings.

  3. cederom commented on Feb 20, 2025

    @cederom
    Contributor

    @hartmannathan could you please verify all our repos settings so direct push is NOT allowed or know anyone who can ? :-)

    Update: now -> NOT, hanks @hartmannathan =)

  4. hartmannathan commented on Feb 20, 2025

    @hartmannathan
    Contributor

    @cederom I assume you mean so direct push is NOT allowed :-) I will ask Infra to fix this in all our repos.

  5. hartmannathan commented on Feb 20, 2025

    @hartmannathan
    Contributor

    @cederom Infra replied fast! Turns out this is something we can do ourselves. See: https://github.com/apache/infrastructure-asfyaml?tab=readme-ov-file#branchpro -- it looks slightly involved and I don't have time to study it right away. Should I ask for help on the dev list or is it something you feel comfortable doing?

  6. Swatantra-66 commented on Oct 9, 2026

    @Swatantra-66
    Contributor

    Hi @raiden00pl @hartmannathan @cederom,

    I have submitted PR #195 to configure required_pull_request_reviews and required_conversation_resolution under the .asf.yaml ruleset.
    This will enforce branch protection on master and block direct pushes while keeping website publishing intact. Ready for your review!

  7. added a commit that references this issue on Oct 27, 2026
    10f462b
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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions