Disallow sync image that not in allowslist

This commit is contained in:
Shiming Zhang 2024-06-20 13:43:47 +08:00
parent aae7a507a1
commit a9d9895984
2 changed files with 2 additions and 0 deletions

View File

@ -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} 不在白名单列表里, 将不再支持同步和访问<br>将其添加到[白名单](https://github.com/${{ github.repository }}/issues/2328"
exit 1
fi
- name: Check Image

View File

@ -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} 不在白名单列表里, 将不再支持同步和访问<br>将其添加到[白名单](https://github.com/${{ github.repository }}/issues/2328"
exit 1
fi
echo "image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT