[{"data":1,"prerenderedAt":101},["ShallowReactive",2],{"blog-blocking-pull-requests-with-exposed-secrets-using-repository-rulesets":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"tags":11,"cover":16,"body":17,"_type":95,"_id":96,"_source":97,"_file":98,"_stem":99,"_extension":100},"/blog/blocking-pull-requests-with-exposed-secrets-using-repository-rulesets","blog",false,"","Blocking Pull Requests with Exposed Secrets Using Repository Rulesets","Learn how GitHub's new repository rulesets feature can help secure your codebase by preventing pull requests with exposed secrets from merging.","2026-09-10",[12,13,14,15],"GitHub","security","DevSecOps","repository-rulesets",true,{"type":18,"children":19,"toc":88},"root",[20,29,35,41,46,52,57,63,83],{"type":21,"tag":22,"props":23,"children":25},"element","h2",{"id":24},"enhancing-repository-security-with-rulesets",[26],{"type":27,"value":28},"text","Enhancing Repository Security with Rulesets",{"type":21,"tag":30,"props":31,"children":32},"p",{},[33],{"type":27,"value":34},"GitHub has expanded its repository rulesets capabilities by enabling developers to block pull requests that contain exposed secrets from merging. This new feature equips teams with automated safeguards to maintain code integrity and protect sensitive information.",{"type":21,"tag":22,"props":36,"children":38},{"id":37},"what-are-repository-rulesets",[39],{"type":27,"value":40},"What Are Repository Rulesets?",{"type":21,"tag":30,"props":42,"children":43},{},[44],{"type":27,"value":45},"Repository rulesets allow for scalable and customizable protection policies across repositories. They help enforce consistent security standards without adding manual overhead, streamlining the development process.",{"type":21,"tag":22,"props":47,"children":49},{"id":48},"why-blocking-exposed-secrets-matters",[50],{"type":27,"value":51},"Why Blocking Exposed Secrets Matters",{"type":21,"tag":30,"props":53,"children":54},{},[55],{"type":27,"value":56},"Exposed secrets like API keys or credentials in pull requests create serious security risks. Automating the detection and blocking of such pull requests reduces these vulnerabilities and fosters safer collaboration.",{"type":21,"tag":22,"props":58,"children":60},{"id":59},"key-benefits",[61],{"type":27,"value":62},"Key Benefits",{"type":21,"tag":64,"props":65,"children":66},"ul",{},[67,73,78],{"type":21,"tag":68,"props":69,"children":70},"li",{},[71],{"type":27,"value":72},"Prevent accidental leaks early in the development cycle",{"type":21,"tag":68,"props":74,"children":75},{},[76],{"type":27,"value":77},"Enforce organization-wide security policies",{"type":21,"tag":68,"props":79,"children":80},{},[81],{"type":27,"value":82},"Scale protections effortlessly across multiple repositories",{"type":21,"tag":30,"props":84,"children":85},{},[86],{"type":27,"value":87},"This update represents a meaningful step towards integrating security seamlessly into the developer workflow.",{"title":7,"searchDepth":89,"depth":89,"links":90},2,[91,92,93,94],{"id":24,"depth":89,"text":28},{"id":37,"depth":89,"text":40},{"id":48,"depth":89,"text":51},{"id":59,"depth":89,"text":62},"markdown","content:blog:blocking-pull-requests-with-exposed-secrets-using-repository-rulesets.md","content","blog/blocking-pull-requests-with-exposed-secrets-using-repository-rulesets.md","blog/blocking-pull-requests-with-exposed-secrets-using-repository-rulesets","md",1789024718499]