You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/09/08 05:04:18 UTC
(superset) branch master updated: ci: add ASF GitHub Actions allowlist check (#43844)
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 1b3758d2a4d ci: add ASF GitHub Actions allowlist check (#43844)
1b3758d2a4d is described below
commit 1b3758d2a4d7e0773fcaece7ee7f32d95ae0875c
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Mon Sep 7 22:04:10 2026 -0700
ci: add ASF GitHub Actions allowlist check (#43844)
Co-authored-by: Claude Fable 5.1 <no...@anthropic.com>
---
.github/actions/change-detector/label-draft-pr.yml | 23 -----------
.github/actions/setup-docker/action.yml | 6 +--
.github/workflows/asf-allowlist-check.yml | 46 ++++++++++++++++++++++
3 files changed, 49 insertions(+), 26 deletions(-)
diff --git a/.github/actions/change-detector/label-draft-pr.yml b/.github/actions/change-detector/label-draft-pr.yml
deleted file mode 100644
index 0949cc2df37..00000000000
--- a/.github/actions/change-detector/label-draft-pr.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-name: Label Draft PRs
-on:
- pull_request:
- types:
- - opened
- - converted_to_draft
-jobs:
- label-draft:
- runs-on: ubuntu-latest
- steps:
- - name: Check if the PR is a draft
- id: check-draft
- uses: actions/github-script@v8
- with:
- script: |
- const isDraft = context.payload.pull_request.draft;
- core.setOutput('isDraft', isDraft);
- - name: Add `review:draft` Label
- if: steps.check-draft.outputs.isDraft == 'true'
- uses: actions-ecosystem/action-add-labels@v1
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- labels: "review:draft"
diff --git a/.github/actions/setup-docker/action.yml b/.github/actions/setup-docker/action.yml
index b8b02a9505f..f2c5b8494b2 100644
--- a/.github/actions/setup-docker/action.yml
+++ b/.github/actions/setup-docker/action.yml
@@ -26,7 +26,7 @@ runs:
- name: Set up QEMU
if: ${{ inputs.build == 'true' }}
- uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
+ uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
with:
# Pin the binfmt image to a specific QEMU release. The default
# (`tonistiigi/binfmt:latest`) is a moving target, and drift across
@@ -39,12 +39,12 @@ runs:
- name: Set up Docker Buildx
if: ${{ inputs.build == 'true' }}
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
+ uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
- name: Try to login to DockerHub
if: ${{ inputs.login-to-dockerhub == 'true' }}
continue-on-error: true
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
username: ${{ inputs.dockerhub-user }}
password: ${{ inputs.dockerhub-token }}
diff --git a/.github/workflows/asf-allowlist-check.yml b/.github/workflows/asf-allowlist-check.yml
new file mode 100644
index 00000000000..cdd552a503c
--- /dev/null
+++ b/.github/workflows/asf-allowlist-check.yml
@@ -0,0 +1,46 @@
+# Verifies that every `uses:` ref under .github/ is on the ASF Infrastructure
+# GitHub Actions allowlist (apache/infrastructure-actions). An action that is
+# not allowlisted fails at "Set up job" with no logs and no notification, so
+# this check surfaces the problem at PR time instead. It also warns (without
+# failing) when a pinned SHA's allowlist entry is about to expire.
+name: ASF Allowlist Check
+
+on:
+ workflow_dispatch:
+ pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
+ paths:
+ - ".github/**"
+ push:
+ branches:
+ - "master"
+ - "[0-9].[0-9]*"
+ paths:
+ - ".github/**"
+ schedule:
+ # Weekly, so allowlist expirations are surfaced even when nothing under
+ # .github/ has changed.
+ - cron: "0 6 * * 1"
+
+permissions:
+ contents: read
+
+# cancel previous workflow jobs for PRs
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: true
+
+jobs:
+ asf-allowlist-check:
+ runs-on: ubuntu-26.04
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+
+ - name: Check action refs against the ASF allowlist
+ uses: apache/infrastructure-actions/allowlist-check@61dcea11f19e2bbe1263f14d72235e8da17d3ad0 # allowlist-check/v1.0.0
+ with:
+ # Default scan-glob is .github/**/*.yml, which misses .yaml files.
+ scan-glob: ".github/**/*.y*ml"