From b8c1941d2ce1f4a882fcaf54095cf8a7f8670a31 Mon Sep 17 00:00:00 2001 From: Jacopo Cappellato Date: Mon, 13 Apr 2026 09:16:39 +0200 Subject: [PATCH 1/3] Add ASF allowlist check workflow Adds a CI workflow that verifies all `uses: refs` in workflow files are on the ASF allowlist using apache/infrastructure-actions/allowlist-check. This new workflow triggers on PRs and pushes to main that modify .github/** Intentionally pinned to @main to always check against the latest allowlist (cherry picked from commit b32ee11ed9ffdd6a6c60e39fe46485e2764c6ed3) --- .github/workflows/asf-allowlist-check.yml | 44 +++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/asf-allowlist-check.yml diff --git a/.github/workflows/asf-allowlist-check.yml b/.github/workflows/asf-allowlist-check.yml new file mode 100644 index 00000000000..1e1a577a7aa --- /dev/null +++ b/.github/workflows/asf-allowlist-check.yml @@ -0,0 +1,44 @@ +# +# 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 all GitHub Actions refs are on the ASF allowlist. +# See https://github.com/apache/infrastructure-actions/blob/main/README.md + +name: "ASF Allowlist Check" + +on: + pull_request: + paths: + - ".github/**" + push: + paths: + - ".github/**" + +permissions: + contents: read + +jobs: + asf-allowlist-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + # Intentionally unpinned to always use the latest allowlist from the ASF. + - uses: apache/infrastructure-actions/allowlist-check@main \ No newline at end of file From 0cc21c8bb0b2eee14e879fdeb1c45c00f0c5afe6 Mon Sep 17 00:00:00 2001 From: Jacopo Cappellato Date: Mon, 13 Apr 2026 10:10:28 +0200 Subject: [PATCH 2/3] Rename workflow files from .yaml to .yml for consistency and compatibility with the new asf-allowlist-check.yml workflow (cherry picked from commit d40f60865f519a6b0491c551d422e790752dde8b) --- .github/workflows/{docker-image.yaml => docker-image.yml} | 0 .github/workflows/{gradle.yaml => gradle.yml} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{docker-image.yaml => docker-image.yml} (100%) rename .github/workflows/{gradle.yaml => gradle.yml} (100%) diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yml similarity index 100% rename from .github/workflows/docker-image.yaml rename to .github/workflows/docker-image.yml diff --git a/.github/workflows/gradle.yaml b/.github/workflows/gradle.yml similarity index 100% rename from .github/workflows/gradle.yaml rename to .github/workflows/gradle.yml From 7cc1fc77b7064422dcc944249e0760ec222d5629 Mon Sep 17 00:00:00 2001 From: Jacopo Cappellato Date: Mon, 13 Apr 2026 10:40:01 +0200 Subject: [PATCH 3/3] Restrict ASF allowlist checks to main branches only (cherry picked from commit bab6798720e75a9a73e8813920b611826f5a9fa3) --- .github/workflows/asf-allowlist-check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/asf-allowlist-check.yml b/.github/workflows/asf-allowlist-check.yml index 1e1a577a7aa..25adf611916 100644 --- a/.github/workflows/asf-allowlist-check.yml +++ b/.github/workflows/asf-allowlist-check.yml @@ -24,9 +24,11 @@ name: "ASF Allowlist Check" on: pull_request: + branches: [ trunk, release* ] paths: - ".github/**" push: + branches: [ trunk, release* ] paths: - ".github/**"