From a9d9895984b1af474c85ced70e82c139a63bf751 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Thu, 20 Jun 2024 13:43:47 +0800 Subject: [PATCH] Disallow sync image that not in allowslist --- .github/workflows/target-image-sync.yml | 1 + .github/workflows/target-sync-image.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/target-image-sync.yml b/.github/workflows/target-image-sync.yml index 7ee4397..4e22268 100644 --- a/.github/workflows/target-image-sync.yml +++ b/.github/workflows/target-image-sync.yml @@ -42,6 +42,7 @@ jobs: fi if ! ./hack/verify-allows.sh ./allows.txt "${ORIGIN_IMAGE}"; then gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 不在白名单列表里, 将不再支持同步和访问
将其添加到[白名单](https://github.com/${{ github.repository }}/issues/2328" + exit 1 fi - name: Check Image diff --git a/.github/workflows/target-sync-image.yml b/.github/workflows/target-sync-image.yml index 9c4ecfe..3e1a5e0 100644 --- a/.github/workflows/target-sync-image.yml +++ b/.github/workflows/target-sync-image.yml @@ -41,6 +41,7 @@ jobs: fi if ! ./hack/verify-allows.sh ./allows.txt "${ORIGIN_IMAGE}"; then gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 不在白名单列表里, 将不再支持同步和访问
将其添加到[白名单](https://github.com/${{ github.repository }}/issues/2328" + exit 1 fi echo "image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT