You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Atharv3221 (via GitHub)" <gi...@apache.org> on 2026/10/25 16:21:33 UTC
[PR] KAFKA-21290: Add ASF allowlist check for GitHub Actions workflows [kafka]
Atharv3221 opened a new pull request, #23954:
URL: https://github.com/apache/kafka/pull/23954
Changes:
Added a workflow that runs the ASF Infra allowlist-check action (apache/infrastructure-actions/allowlist-check). It verifies that every `uses:` ref under .github/ is on the ASF org-level allowlist.
Unapproved action fails at PR time instead of causing a silent "Startup failure" with no logs. It runs on PRs and pushes that touch .github/, plus weekly to catch allowlisted pins that expire.
Ref: https://github.com/apache/infrastructure-actions/tree/main/allowlist-check
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-21290: Add ASF allowlist check for GitHub Actions workflows [kafka]
Posted by "chia7712 (via GitHub) via jira" <ji...@kafka.apache.org>.
chia7712 commented on code in PR #23954:
URL: https://github.com/apache/kafka/pull/23954#discussion_r4732445131
##########
.github/workflows/asf-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.
+
+name: 'ASF Allowlist Check'
+
+on:
+ workflow_dispatch:
+ pull_request:
+ paths:
+ - '.github/**'
+ push:
+ branches:
+ - 'trunk'
Review Comment:
We don't filter the path for push, and that seems to be a better way than the periodic check. Maybe we can remove the weekly cron? WDYT? Both are fine with me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-21290: Add ASF allowlist check for GitHub Actions workflows [kafka]
Posted by "chia7712 (via GitHub) via jira" <ji...@kafka.apache.org>.
chia7712 commented on code in PR #23954:
URL: https://github.com/apache/kafka/pull/23954#discussion_r4506486753
##########
.github/workflows/asf-allowlist-check.yml:
##########
@@ -0,0 +1,46 @@
+# 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.
+
+name: 'ASF Allowlist Check'
+
+on:
+ workflow_dispatch:
+ pull_request:
+ paths:
+ - '.github/**'
+ push:
+ branches:
+ - 'trunk'
+ schedule:
+ - cron: '0 6 * * 1' # Runs weekly on Monday 06:00 UTC
+
+permissions:
+ contents: read
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
+
+jobs:
+ asf-allowlist-check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v5
+ with:
+ persist-credentials: 'false'
+ - uses: apache/infrastructure-actions/allowlist-check@main
+ with:
+ scan-glob: '.github/workflows/*.yml'
Review Comment:
I think the default value `.github/**/*.yml` is more suitable for Kafka. For example, there are many yml files under `.github/actions`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-21290: Add ASF allowlist check for GitHub Actions workflows [kafka]
Posted by "Atharv3221 (via GitHub)" <gi...@apache.org>.
Atharv3221 commented on code in PR #23954:
URL: https://github.com/apache/kafka/pull/23954#discussion_r4371519716
##########
.github/workflows/asf-allowlist-check.yml:
##########
@@ -0,0 +1,46 @@
+# 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.
+
+name: 'ASF Allowlist Check'
+
+on:
+ workflow_dispatch:
+ pull_request:
+ paths:
+ - '.github/**'
+ push:
+ branches:
+ - 'trunk'
+ schedule:
+ - cron: '0 6 * * 1' # Runs weekly on Monday 06:00 UTC
Review Comment:
Help needed setting the preferred time for the weekly cron
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-21290: Add ASF allowlist check for GitHub Actions workflows [kafka]
Posted by "Atharv3221 (via GitHub) via jira" <ji...@kafka.apache.org>.
Atharv3221 commented on code in PR #23954:
URL: https://github.com/apache/kafka/pull/23954#discussion_r4743502217
##########
.github/workflows/asf-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.
+
+name: 'ASF Allowlist Check'
+
+on:
+ workflow_dispatch:
+ pull_request:
+ paths:
+ - '.github/**'
+ push:
+ branches:
+ - 'trunk'
Review Comment:
@chia7712 Agreed. Weekly corn is redundant the check already runs on every pr.
Removed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-21290: Add ASF allowlist check for GitHub Actions workflows [kafka]
Posted by "Atharv3221 (via GitHub) via jira" <ji...@kafka.apache.org>.
Atharv3221 commented on PR #23954:
URL: https://github.com/apache/kafka/pull/23954#issuecomment-6722842342
> @Atharv3221 thanks for this patch. BTW, it would be better to assign the jira to yourself before preparing the patch. Two talented contributors are working on the same jira and it is a waste of effort.
I’ve applied for a Jira account and will assign issues to myself before starting work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-21290: Add ASF allowlist check for GitHub Actions workflows [kafka]
Posted by "OmniaGM (via GitHub)" <gi...@apache.org>.
OmniaGM commented on code in PR #23954:
URL: https://github.com/apache/kafka/pull/23954#discussion_r4381869940
##########
.github/workflows/asf-allowlist-check.yml:
##########
@@ -0,0 +1,46 @@
+# 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.
+
+name: 'ASF Allowlist Check'
+
+on:
+ workflow_dispatch:
+ pull_request:
+ paths:
+ - '.github/**'
+ push:
+ branches:
+ - 'trunk'
+ schedule:
+ - cron: '0 6 * * 1' # Runs weekly on Monday 06:00 UTC
Review Comment:
I guess any time would be okay!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-21290: Add ASF allowlist check for GitHub Actions workflows [kafka]
Posted by "Atharv3221 (via GitHub) via jira" <ji...@kafka.apache.org>.
Atharv3221 commented on code in PR #23954:
URL: https://github.com/apache/kafka/pull/23954#discussion_r4506566938
##########
.github/workflows/asf-allowlist-check.yml:
##########
@@ -0,0 +1,46 @@
+# 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.
+
+name: 'ASF Allowlist Check'
+
+on:
+ workflow_dispatch:
+ pull_request:
+ paths:
+ - '.github/**'
+ push:
+ branches:
+ - 'trunk'
+ schedule:
+ - cron: '0 6 * * 1' # Runs weekly on Monday 06:00 UTC
+
+permissions:
+ contents: read
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
+
+jobs:
+ asf-allowlist-check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v5
+ with:
+ persist-credentials: 'false'
+ - uses: apache/infrastructure-actions/allowlist-check@main
+ with:
+ scan-glob: '.github/workflows/*.yml'
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org