This is an automated email from the ASF dual-hosted git repository.
mawiesne pushed a commit to branch opennlp-2.x
in repository https://gitbox.apache.org/repos/asf/opennlp.git
The following commit(s) were added to refs/heads/opennlp-2.x by this push:
new eed10376b Add ASF allowlist-check workflow
eed10376b is described below
commit eed10376b35c8e4d0b45d10961170630b66ae9df
Author: Richard Zowalla <[email protected]>
AuthorDate: Mon Jun 29 19:30:16 2026 +0200
Add ASF allowlist-check workflow
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.
Branch protection (the required status check) is configured in .asf.yaml on
the default branch (main).
---
.github/workflows/allowlist-check.yml | 45 +++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
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