From 4a8887b038d4b582e3065c7da2ec34b4f6d145f8 Mon Sep 17 00:00:00 2001 From: Salvatore Martorana <124510313+SMartorana@users.noreply.github.com> Date: Sun, 8 Mar 2026 21:38:22 +0100 Subject: [PATCH] Use PAT to fetch private dependencies/assets Update CI workflow to access private Sernior repositories using a Personal Access Token stored in secrets.GH_PAT_CLASSIC. The git clone URL now includes the PAT and the raw file fetch uses an Authorization header so the workflow can retrieve the modified _deps repo and globals.css from private repos. Existing behavior (e.g. || true on curl) is preserved to avoid breaking the build on missing files. --- .github/workflows/move-docs.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/move-docs.yml b/.github/workflows/move-docs.yml index b37df2d..632fc68 100644 --- a/.github/workflows/move-docs.yml +++ b/.github/workflows/move-docs.yml @@ -30,8 +30,9 @@ jobs: - name: Fetch Custom Local Dependencies run: | - # Fetch the modified _deps folder from Sernior's repository since it is in .gitignore - git clone https://github.com/Sernior/NPLEX-modified-dependencies _deps + # Fetch the modified _deps folder from Sernior's private repository + # Requires a Personal Access Token (PAT) stored in GitHub Secrets + git clone https://${{ secrets.GH_PAT_CLASSIC }}@github.com/Sernior/NPLEX-modified-dependencies.git _deps - name: Build Move Documentation run: iota move build --doc @@ -62,8 +63,8 @@ jobs: mkdir -p build/nplex/docs/assets/css mkdir -p build/nplex/docs/_includes - # Fetch FE globals.css directly - curl -sL "https://raw.githubusercontent.com/Sernior/hackatonIOTA-FE/main/src/app/globals.css" > build/nplex/docs/assets/css/globals.css || true + # Fetch FE globals.css directly from private repository + curl -H "Authorization: token ${{ secrets.GH_PAT_CLASSIC }}" -sL "https://raw.githubusercontent.com/Sernior/hackatonIOTA-FE/main/src/app/globals.css" > build/nplex/docs/assets/css/globals.css || true # Add a custom tag inside the document HEAD to load the globals.css styles echo "" > build/nplex/docs/_includes/head_custom.html