From 076e758e0f07ac70671e0329ed97ad3bf50cf3d4 Mon Sep 17 00:00:00 2001 From: Nikita Amelchev Date: Fri, 15 May 2026 14:17:14 +0300 Subject: [PATCH] IGNITE-28683 Validate ignite-website token in the Publish website documentation action --- .../publish-website-on-branch-update.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/publish-website-on-branch-update.yml b/.github/workflows/publish-website-on-branch-update.yml index 00188de016cca..6092aa2af8062 100644 --- a/.github/workflows/publish-website-on-branch-update.yml +++ b/.github/workflows/publish-website-on-branch-update.yml @@ -59,6 +59,26 @@ jobs: exit 1 fi + - name: Validate ignite-website token + env: + GH_TOKEN: ${{ secrets.IGNITE_WEBSITE_BUILD }} + run: | + if [ -z "$GH_TOKEN" ]; then + echo "::error::Secret IGNITE_WEBSITE_BUILD is empty or missing." + echo "::error::Please contact Apache INFRA to create or update the token." + echo "::error::Example INFRA ticket:" + echo "::error::https://issues.apache.org/jira/browse/INFRA-27835" + exit 1 + fi + + if ! git ls-remote https://x-access-token:${GH_TOKEN}@github.com/apache/ignite-website.git &>/dev/null; then + echo "::error::Invalid or expired IGNITE_WEBSITE_BUILD token." + echo "::error::Please contact Apache INFRA to renew or recreate the token." + echo "::error::Example INFRA ticket:" + echo "::error::https://issues.apache.org/jira/browse/INFRA-27835" + exit 1 + fi + - name: Check out 'ignite-website' repository code uses: actions/checkout@v3 with: