This is an automated email from the ASF dual-hosted git repository.

mawiesne pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opennlp.git


The following commit(s) were added to refs/heads/main by this push:
     new a49cebfdd Add ASF allowlist-check workflow and require it via .asf.yaml
a49cebfdd is described below

commit a49cebfdd5c6e23f0ab8d65f50bf1a72f6108ec2
Author: Richard Zowalla <[email protected]>
AuthorDate: Mon Jun 29 19:29:58 2026 +0200

    Add ASF allowlist-check workflow and require it via .asf.yaml
    
    Run apache/infrastructure-actions/allowlist-check on every PR and on pushes
    that touch .github/**, so disallowed Actions (e.g. introduced via Dependabot
    github-actions updates) are caught before merge. Mark asf-allowlist-check as
    a required status check for main and opennlp-2.x in .asf.yaml.
---
 .asf.yaml                             | 12 +++++++++-
 .github/workflows/allowlist-check.yml | 45 +++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+), 1 deletion(-)

diff --git a/.asf.yaml b/.asf.yaml
index 6b277b606..436d4c7fc 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -7,12 +7,22 @@ github:
   homepage: https://opennlp.apache.org/
   protected_branches:
     # Prevent force pushes to primary branches
+    # `asf-allowlist-check` is the job in 
.github/workflows/allowlist-check.yml and
+    # must match the job name there; it blocks merges that reference a GitHub 
Action
+    # not on the ASF allowlist. Branch protection is read from the default 
branch
+    # (main) only, so both branches are configured here.
     main:
       required_pull_request_reviews:
         dismiss_stale_reviews: false
         require_code_owner_reviews: false
         required_approving_review_count: 1
-    opennlp-2.x:  {}
+      required_status_checks:
+        contexts:
+          - asf-allowlist-check
+    opennlp-2.x:
+      required_status_checks:
+        contexts:
+          - asf-allowlist-check
   autolink_jira:
     - OPENNLP
   custom_subjects:
diff --git a/.github/workflows/allowlist-check.yml 
b/.github/workflows/allowlist-check.yml
new file mode 100644
index 000000000..907e4c97e
--- /dev/null
+++ b/.github/workflows/allowlist-check.yml
@@ -0,0 +1,45 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Verifies that every GitHub Action referenced via `uses:` in .github/**/*.yml 
is
+# on the ASF approved-actions allowlist, see:
+# https://github.com/apache/infrastructure-actions/tree/main/allowlist-check
+# This guards against disallowed Actions sneaking in, e.g. via Dependabot
+# github-actions update PRs. It is wired up as a required status check in 
.asf.yaml.
+name: ASF Allowlist Check
+
+on:
+  workflow_dispatch:
+  # No paths filter on purpose: as a required status check this job must 
report a
+  # status on every PR, otherwise PRs that don't touch .github/** would be 
blocked.
+  pull_request:
+  push:
+    branches:
+      - main
+      - opennlp-2.x
+    paths:
+      - ".github/**"
+
+permissions:
+  contents: read
+
+jobs:
+  asf-allowlist-check:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 
v7.0.0
+        with:
+          persist-credentials: false
+      - uses: apache/infrastructure-actions/allowlist-check@main

Reply via email to