Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 38 additions & 15 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,32 +61,55 @@ github:
features:
issues: true

# Prevent force pushes to primary branches
protected_branches:
main:
rulesets:
- name: "Branch protection: parent POM"
type: branch
branches:
includes:
- "~DEFAULT_BRANCH"
# All reviews must be addressed before merging
required_conversation_resolution: true
# Require checks to pass before merging
required_status_checks:
checks:
# The GitHub Actions app: 15368
- app_id: 15368
context: "build / build (ubuntu-latest)"
# The GitHub Advanced Security app: 57789
- app_id: 57789
context: "CodeQL"
# The GitHub Actions app
- app_slug: github-actions
name: "build / build (ubuntu-latest)"
# The GitHub Advanced Security app
- app_slug: github-advanced-security
name: "CodeQL"
# At least one positive review must be present
required_pull_request_reviews:
required_approving_review_count: 1
gha/v0:
- name: "Branch protection: reusable actions"
type: branch
branches:
includes:
- "gha/*"
# All reviews must be addressed before merging
required_conversation_resolution: true
# Require checks to pass before merging
required_status_checks:
checks:
# The GitHub Advanced Security app: 57789
- app_id: 57789
context: "CodeQL"
# The GitHub Advanced Security app
- app_slug: github-advanced-security
name: "CodeQL"
# At least one positive review must be present
required_pull_request_reviews:
required_approving_review_count: 1
# Use raw rules, until a convenience notation for `restrict_update` is introduced.
# See: https://github.com/apache/infrastructure-asfyaml/issues/96
#
# The raw rules need to follow the syntax given in:
# https://docs.github.com/en/rest/repos/rules?apiVersion=2026-03-10#update-a-repository-ruleset
- name: "Tag protection"
target: tag
enforcement: active
bypass_actors: []
conditions:
ref_name:
include:
- "refs/tags/rel/*"
exclude: []
rules:
- type: deletion
- type: non_fast_forward
- type: update
Loading