From 12a16b178a235a022f8a6f01183b467df323af32 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 20 Jun 2026 10:29:48 -0500 Subject: [PATCH] chore: rename secret references for readability GA_TOKEN -> MOKOGITEA_TOKEN GH_TOKEN -> GH_PAT Applied across all workflows, templates, and embedded MCP servers. Secrets need to be updated in repo settings to match. --- .mokogitea/branch-protection.yml | 4 +- .mokogitea/bulk-repo-sync.yml | 6 +-- .mokogitea/renovate.yml | 4 +- .mokogitea/sync-wikis.yml | 2 +- .mokogitea/workflows/deploy-manual.yml | 8 +-- .../.mokogitea/workflows/repo-health.yml | 2 +- .../.mokogitea/workflows/repo-health.yml | 2 +- .../.mokogitea/workflows/auto-assign.yml | 2 +- .../.mokogitea/workflows/auto-dev-issue.yml | 2 +- .../.mokogitea/workflows/auto-release.yml | 54 +++++++++---------- .../.mokogitea/workflows/cascade-dev.yml | 4 +- .../mokossh/.mokogitea/workflows/cleanup.yml | 6 +-- .../.mokogitea/workflows/deploy-manual.yml | 8 +-- .../.mokogitea/workflows/mcp-auto-release.yml | 8 +-- .../.mokogitea/workflows/pre-release.yml | 12 ++--- .../.mokogitea/workflows/repo-health.yml | 2 +- .../workflows/repository-cleanup.yml | 14 ++--- .../workflows/standards-compliance.yml | 14 ++--- .../workflows/sync-version-on-merge.yml | 8 +-- .../mokosuite_api/.mokogitea/auto-assign.yml | 2 +- .../.mokogitea/auto-dev-issue.yml | 2 +- .../mokosuite_api/.mokogitea/auto-release.yml | 8 +-- .../mokosuite_api/.mokogitea/cascade-dev.yml | 4 +- .../mokosuite_api/.mokogitea/deploy-demo.yml | 8 +-- .../mokosuite_api/.mokogitea/deploy-dev.yml | 6 +-- .../.mokogitea/mcp-auto-release.yml | 8 +-- .../.mokogitea/repository-cleanup.yml | 14 ++--- .../.mokogitea/standards-compliance.yml | 14 ++--- .../.mokogitea/sync-version-on-merge.yml | 8 +-- .../.mokogitea/workflows/auto-assign.yml | 2 +- .../.mokogitea/workflows/auto-dev-issue.yml | 2 +- .../.mokogitea/workflows/auto-release.yml | 54 +++++++++---------- .../.mokogitea/workflows/cascade-dev.yml | 4 +- .../.mokogitea/workflows/cleanup.yml | 6 +-- .../.mokogitea/workflows/deploy-manual.yml | 8 +-- .../.mokogitea/workflows/mcp-auto-release.yml | 8 +-- .../.mokogitea/workflows/pre-release.yml | 12 ++--- .../.mokogitea/workflows/repo-health.yml | 2 +- .../workflows/repository-cleanup.yml | 14 ++--- .../workflows/standards-compliance.yml | 14 ++--- .../workflows/sync-version-on-merge.yml | 8 +-- .../.mokogitea/workflows/auto-assign.yml | 2 +- .../.mokogitea/workflows/auto-dev-issue.yml | 2 +- .../.mokogitea/workflows/auto-release.yml | 54 +++++++++---------- .../.mokogitea/workflows/cascade-dev.yml | 4 +- .../windows/.mokogitea/workflows/cleanup.yml | 6 +-- .../.mokogitea/workflows/deploy-manual.yml | 8 +-- .../.mokogitea/workflows/mcp-auto-release.yml | 8 +-- .../.mokogitea/workflows/pre-release.yml | 10 ++-- .../.mokogitea/workflows/repo-health.yml | 2 +- .../workflows/repository-cleanup.yml | 14 ++--- .../workflows/standards-compliance.yml | 14 ++--- .../workflows/sync-version-on-merge.yml | 8 +-- .../.mokogitea/branch-protection.yml | 4 +- .../.mokogitea/workflows/ci-client.yml | 2 +- .../.mokogitea/workflows/cleanup.yml | 6 +-- .../.mokogitea/workflows/client-release.yml | 10 ++-- .../.mokogitea/workflows/health-check.yml | 4 +- .../.mokogitea/workflows/issue-branch.yml | 2 +- .../.mokogitea/workflows/joomla-compat.yml | 2 +- .../.mokogitea/workflows/release-verify.yml | 4 +- .../.mokogitea/workflows/theme-lint.yml | 2 +- .../dolibarr/.mokogitea/branch-protection.yml | 4 +- .../.mokogitea/workflows/ci-dolibarr.yml | 6 +-- .../dolibarr/.mokogitea/workflows/cleanup.yml | 6 +-- .../.mokogitea/workflows/deploy-demo.yml | 8 +-- .../.mokogitea/workflows/deploy-dev.yml | 8 +-- .../.mokogitea/workflows/deploy-manual.yml | 8 +-- .../.mokogitea/workflows/issue-branch.yml | 2 +- .../workflows/publish-to-mokodolimods.yml | 4 +- .../generic/.mokogitea/branch-protection.yml | 4 +- .../generic/.mokogitea/workflows/cleanup.yml | 6 +-- .../.mokogitea/workflows/deploy-manual.yml | 8 +-- .../.mokogitea/workflows/issue-branch.yml | 2 +- .../joomla/.mokogitea/branch-protection.yml | 4 +- .../joomla/.mokogitea/workflows/ci-joomla.yml | 12 ++--- .../joomla/.mokogitea/workflows/cleanup.yml | 6 +-- .../.mokogitea/workflows/issue-branch.yml | 2 +- .../mcp/.mokogitea/branch-protection.yml | 4 +- .../mcp/.mokogitea/workflows/auto-assign.yml | 2 +- .../.mokogitea/workflows/auto-dev-issue.yml | 2 +- .../mcp/.mokogitea/workflows/cleanup.yml | 6 +-- .../.mokogitea/workflows/deploy-manual.yml | 8 +-- .../mcp/.mokogitea/workflows/issue-branch.yml | 2 +- .../.mokogitea/workflows/mcp-auto-release.yml | 8 +-- .../workflows/repository-cleanup.yml | 14 ++--- .../workflows/standards-compliance.yml | 14 ++--- .../workflows/sync-version-on-merge.yml | 8 +-- 88 files changed, 348 insertions(+), 348 deletions(-) diff --git a/.mokogitea/branch-protection.yml b/.mokogitea/branch-protection.yml index 546a3c4..8cade6a 100644 --- a/.mokogitea/branch-protection.yml +++ b/.mokogitea/branch-protection.yml @@ -57,7 +57,7 @@ jobs: - name: Determine target repos id: repos env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1" @@ -105,7 +105,7 @@ jobs: - name: Apply protection rules env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} DRY_RUN: ${{ inputs.dry_run || 'false' }} run: | API="${GITEA_URL}/api/v1" diff --git a/.mokogitea/bulk-repo-sync.yml b/.mokogitea/bulk-repo-sync.yml index 9a5b14f..e67f932 100644 --- a/.mokogitea/bulk-repo-sync.yml +++ b/.mokogitea/bulk-repo-sync.yml @@ -84,8 +84,8 @@ jobs: echo "Running: php automation/bulk_sync.php ${{ steps.args.outputs.args }}" php automation/bulk_sync.php ${{ steps.args.outputs.args }} 2>&1 | tee /tmp/bulk_sync.log env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} + GH_TOKEN: ${{ secrets.GH_PAT }} GIT_PLATFORM: gitea GITEA_URL: https://git.mokoconsulting.tech GITEA_ORG: MokoConsulting @@ -112,7 +112,7 @@ jobs: bash automation/enforce_tags.sh || echo "Tag enforcement had errors (non-fatal)" fi env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} GITEA_URL: https://git.mokoconsulting.tech GITEA_ORG: MokoConsulting diff --git a/.mokogitea/renovate.yml b/.mokogitea/renovate.yml index d4f5cad..e281428 100644 --- a/.mokogitea/renovate.yml +++ b/.mokogitea/renovate.yml @@ -57,7 +57,7 @@ jobs: - name: Determine target repos id: repos env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1" @@ -107,7 +107,7 @@ jobs: - name: Run Renovate if: steps.repos.outputs.repo_list != '' env: - RENOVATE_TOKEN: ${{ secrets.GA_TOKEN }} + RENOVATE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} RENOVATE_PLATFORM: gitea RENOVATE_ENDPOINT: ${{ env.GITEA_URL }}/api/v1 RENOVATE_GIT_AUTHOR: 'Renovate Bot ' diff --git a/.mokogitea/sync-wikis.yml b/.mokogitea/sync-wikis.yml index 26f5e81..b0912db 100644 --- a/.mokogitea/sync-wikis.yml +++ b/.mokogitea/sync-wikis.yml @@ -31,7 +31,7 @@ jobs: - name: Sync all wikis env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GH_TOKEN: ${{ secrets.GH_PAT }} GITEA_URL: ${{ vars.GITEA_URL || 'https://git.mokoconsulting.tech' }} run: | if [ -z "$GH_TOKEN" ]; then diff --git a/.mokogitea/workflows/deploy-manual.yml b/.mokogitea/workflows/deploy-manual.yml index bb133ed..6908af1 100644 --- a/.mokogitea/workflows/deploy-manual.yml +++ b/.mokogitea/workflows/deploy-manual.yml @@ -42,10 +42,10 @@ jobs: - name: Setup MokoStandards tools env: - GA_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_HOST: ${{ secrets.GA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}' + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_HOST: ${{ secrets.MOKOGITEA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.MOKOGITEA_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch main --quiet \ "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/MokoStandards-API.git" \ diff --git a/mcp/servers/mokomonitor/.mokogitea/workflows/repo-health.yml b/mcp/servers/mokomonitor/.mokogitea/workflows/repo-health.yml index b19c2b6..badb732 100644 --- a/mcp/servers/mokomonitor/.mokogitea/workflows/repo-health.yml +++ b/mcp/servers/mokomonitor/.mokogitea/workflows/repo-health.yml @@ -85,7 +85,7 @@ jobs: - name: Check actor permission (admin only) id: perm env: - TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} + TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} REPO: ${{ github.repository }} ACTOR: ${{ github.actor }} run: | diff --git a/mcp/servers/mokomonitor/mcp_mokomonitor/.mokogitea/workflows/repo-health.yml b/mcp/servers/mokomonitor/mcp_mokomonitor/.mokogitea/workflows/repo-health.yml index b19c2b6..badb732 100644 --- a/mcp/servers/mokomonitor/mcp_mokomonitor/.mokogitea/workflows/repo-health.yml +++ b/mcp/servers/mokomonitor/mcp_mokomonitor/.mokogitea/workflows/repo-health.yml @@ -85,7 +85,7 @@ jobs: - name: Check actor permission (admin only) id: perm env: - TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} + TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} REPO: ${{ github.repository }} ACTOR: ${{ github.actor }} run: | diff --git a/mcp/servers/mokossh/.mokogitea/workflows/auto-assign.yml b/mcp/servers/mokossh/.mokogitea/workflows/auto-assign.yml index 348596f..c0f538f 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/auto-assign.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/auto-assign.yml @@ -32,7 +32,7 @@ jobs: steps: - name: Assign unassigned issues env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" ASSIGNEE="jmiller" diff --git a/mcp/servers/mokossh/.mokogitea/workflows/auto-dev-issue.yml b/mcp/servers/mokossh/.mokogitea/workflows/auto-dev-issue.yml index 07f7779..bdd7db7 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/auto-dev-issue.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/auto-dev-issue.yml @@ -47,7 +47,7 @@ jobs: steps: - name: Create tracking issue and sub-issues env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | # For manual dispatch, use input; for auto, use event ref if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then diff --git a/mcp/servers/mokossh/.mokogitea/workflows/auto-release.yml b/mcp/servers/mokossh/.mokogitea/workflows/auto-release.yml index 63e12d1..54b9a1c 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/auto-release.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/auto-release.yml @@ -55,14 +55,14 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 0 - name: Setup mokoplatform tools env: - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN }}"}}' + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT }}"}}' run: | # Ensure PHP + Composer are available if ! command -v composer &> /dev/null; then @@ -287,7 +287,7 @@ jobs: git config --local user.email "gitea-actions[bot]@mokoconsulting.tech" git config --local user.name "gitea-actions[bot]" # Set push URL with token for branch-protected repos - git remote set-url origin "https://jmiller:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" + git remote set-url origin "https://jmiller:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" git add -A git commit -m "chore(release): build ${VERSION} [skip ci]" \ --author="gitea-actions[bot] " @@ -350,20 +350,20 @@ jobs: RELEASE_NAME="${EXT_NAME} ${VERSION} (${TYPE_PREFIX}${EXT_ELEMENT}-${VERSION})" # Delete existing release if present (overwrite, not append) - EXISTING=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + EXISTING=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/tags/${RELEASE_TAG}" 2>/dev/null || true) EXISTING_ID=$(echo "$EXISTING" | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('id',''))" 2>/dev/null || true) if [ -n "$EXISTING_ID" ]; then - curl -sS -X DELETE -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sS -X DELETE -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/${EXISTING_ID}" 2>/dev/null || true - curl -sS -X DELETE -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sS -X DELETE -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/tags/${RELEASE_TAG}" 2>/dev/null || true echo "Deleted previous stable release (id: ${EXISTING_ID})" fi # Create fresh release - curl -sf -X POST -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sf -X POST -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ -H "Content-Type: application/json" \ "${API_BASE}/releases" \ -d "$(python3 -c "import json; print(json.dumps({ @@ -385,7 +385,7 @@ jobs: API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" # All ZIPs upload to the major release tag (vXX) - RELEASE_JSON=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + RELEASE_JSON=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/tags/${RELEASE_TAG}" 2>/dev/null || true) RELEASE_ID=$(echo "$RELEASE_JSON" | python3 -c "import sys,json; print(json.load(sys.stdin).get('id',''))" 2>/dev/null || true) if [ -z "$RELEASE_ID" ]; then @@ -444,7 +444,7 @@ jobs: SHA256_TAR=$(sha256sum "/tmp/${TAR_NAME}" | cut -d' ' -f1) # -- Delete existing assets with same name before uploading ------ - ASSETS=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + ASSETS=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/${RELEASE_ID}/assets" 2>/dev/null || echo "[]") for ASSET_NAME in "$ZIP_NAME" "$TAR_NAME"; do ASSET_ID=$(echo "$ASSETS" | python3 -c " @@ -455,18 +455,18 @@ jobs: print(a['id']); break " 2>/dev/null || true) if [ -n "$ASSET_ID" ]; then - curl -sf -X DELETE -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sf -X DELETE -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/${RELEASE_ID}/assets/${ASSET_ID}" 2>/dev/null || true fi done # -- Upload both to release tag ---------------------------------- - curl -sf -X POST -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sf -X POST -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ -H "Content-Type: application/octet-stream" \ --data-binary @"/tmp/${ZIP_NAME}" \ "${API_BASE}/releases/${RELEASE_ID}/assets?name=${ZIP_NAME}" > /dev/null 2>&1 || true - curl -sf -X POST -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sf -X POST -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ -H "Content-Type: application/octet-stream" \ --data-binary @"/tmp/${TAR_NAME}" \ "${API_BASE}/releases/${RELEASE_ID}/assets?name=${TAR_NAME}" > /dev/null 2>&1 || true @@ -523,7 +523,7 @@ jobs: git push || true # Sync updates.xml to main via direct API (always runs — may be on version/XX branch) - GA_TOKEN="${{ secrets.GA_TOKEN }}" + GA_TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" API="${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}" FILE_SHA=$(curl -sf -H "Authorization: token ${GA_TOKEN}" \ @@ -605,7 +605,7 @@ jobs: [ -n "$SHA256_TAR" ] && BODY="${BODY}| \`${TAR_NAME}\` | \`${SHA256_TAR}\` |\n" # Get release ID and update body - RELEASE_ID=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + RELEASE_ID=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/tags/${RELEASE_TAG}" 2>/dev/null | \ python3 -c "import sys,json; print(json.load(sys.stdin).get('id',''))" 2>/dev/null || true) @@ -617,7 +617,7 @@ jobs: req = urllib.request.Request( '${API_BASE}/releases/${RELEASE_ID}', data=data, - headers={'Authorization': 'token ${{ secrets.GA_TOKEN }}', 'Content-Type': 'application/json'}, + headers={'Authorization': 'token ${{ secrets.MOKOGITEA_TOKEN }}', 'Content-Type': 'application/json'}, method='PATCH' ) urllib.request.urlopen(req) @@ -629,10 +629,10 @@ jobs: if: >- steps.version.outputs.skip != 'true' && steps.version.outputs.stability == 'stable' && - secrets.GH_TOKEN != '' + secrets.GH_PAT != '' continue-on-error: true env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GH_TOKEN: ${{ secrets.GH_PAT }} run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" RELEASE_TAG="${{ steps.version.outputs.release_tag }}" @@ -644,7 +644,7 @@ jobs: [ -z "$NOTES" ] && NOTES="Release ${VERSION}" echo "$NOTES" > /tmp/release_notes.md - EXISTING=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/tags/$RELEASE_TAG" 2>/dev/null | jq -r ".tag_name // empty" || true) + EXISTING=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/tags/$RELEASE_TAG" 2>/dev/null | jq -r ".tag_name // empty" || true) if [ -z "$EXISTING" ]; then gh release create "$RELEASE_TAG" \ @@ -661,8 +661,8 @@ jobs: # Upload assets to GitHub mirror for PKG in /tmp/${EXT_ELEMENT:-pkg}-${VERSION}.*; do if [ -f "$PKG" ]; then - _RELID=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/tags/$RELEASE_TAG" 2>/dev/null | jq -r ".id // empty") - [ -n "$_RELID" ] && curl -sf -X POST -H "Authorization: token ${{ secrets.GA_TOKEN }}" -H "Content-Type: application/octet-stream" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/${_RELID}/assets?name=$(basename $PKG)" --data-binary "@$PKG" > /dev/null 2>&1 || true + _RELID=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/tags/$RELEASE_TAG" 2>/dev/null | jq -r ".id // empty") + [ -n "$_RELID" ] && curl -sf -X POST -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" -H "Content-Type: application/octet-stream" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/${_RELID}/assets?name=$(basename $PKG)" --data-binary "@$PKG" > /dev/null 2>&1 || true fi done echo "GitHub mirror updated: ${GH_REPO} ${RELEASE_TAG}" >> $GITHUB_STEP_SUMMARY @@ -671,14 +671,14 @@ jobs: - name: "Step 10: Push main to GitHub mirror" if: >- steps.version.outputs.skip != 'true' && - secrets.GH_TOKEN != '' + secrets.GH_PAT != '' continue-on-error: true run: | GH_REPO="${{ vars.GH_MIRROR_REPO || github.repository }}" GH_ORG=$(echo "$GH_REPO" | cut -d/ -f1) GH_NAME=$(echo "$GH_REPO" | cut -d/ -f2) - git remote add github "https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${GH_ORG}/${GH_NAME}.git" 2>/dev/null || \ - git remote set-url github "https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${GH_ORG}/${GH_NAME}.git" + git remote add github "https://x-access-token:${{ secrets.GH_PAT }}@github.com/${GH_ORG}/${GH_NAME}.git" 2>/dev/null || \ + git remote set-url github "https://x-access-token:${{ secrets.GH_PAT }}@github.com/${GH_ORG}/${GH_NAME}.git" git fetch origin main --depth=1 git push github origin/main:refs/heads/main --force 2>/dev/null \ && echo "main branch pushed to GitHub mirror" \ @@ -691,7 +691,7 @@ jobs: run: | php /tmp/mokoplatform-api/cli/release_cascade.php \ --stability stable \ - --token "${{ secrets.GA_TOKEN }}" \ + --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --org "${GITEA_ORG}" --repo "${GITEA_REPO}" \ --gitea-url "${GITEA_URL}" 2>/dev/null || true @@ -700,7 +700,7 @@ jobs: continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" # Delete dev branch curl -sf -X DELETE -H "Authorization: token ${TOKEN}" \ @@ -724,7 +724,7 @@ jobs: continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" MOD_FILE="${{ steps.platform.outputs.mod_file }}" ENCODED_PATH=$(echo "$MOD_FILE" | sed 's|^\./||' | python3 -c "import sys,urllib.parse; print(urllib.parse.quote(sys.stdin.read().strip()))") FILE_RESP=$(curl -sf -H "Authorization: token ${TOKEN}" "${API_BASE}/contents/${ENCODED_PATH}?ref=dev" 2>/dev/null || true) diff --git a/mcp/servers/mokossh/.mokogitea/workflows/cascade-dev.yml b/mcp/servers/mokossh/.mokogitea/workflows/cascade-dev.yml index a690e21..e0511e8 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/cascade-dev.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/cascade-dev.yml @@ -52,7 +52,7 @@ jobs: - name: Discover target branches id: branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" @@ -93,7 +93,7 @@ jobs: - name: Cascade to all target branches if: steps.branches.outputs.targets != '' env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" SHORT_SHA="${GITHUB_SHA:0:7}" diff --git a/mcp/servers/mokossh/.mokogitea/workflows/cleanup.yml b/mcp/servers/mokossh/.mokogitea/workflows/cleanup.yml index ae3e017..941a954 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/cleanup.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/cleanup.yml @@ -33,11 +33,11 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} - name: Delete merged branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Merged Branch Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" @@ -66,7 +66,7 @@ jobs: - name: Clean old workflow runs env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Workflow Run Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" diff --git a/mcp/servers/mokossh/.mokogitea/workflows/deploy-manual.yml b/mcp/servers/mokossh/.mokogitea/workflows/deploy-manual.yml index a660ce8..1d9c8da 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/deploy-manual.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/deploy-manual.yml @@ -42,10 +42,10 @@ jobs: - name: Setup mokoplatform tools env: - GA_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_HOST: ${{ secrets.GA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}' + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_HOST: ${{ secrets.MOKOGITEA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.MOKOGITEA_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch main --quiet \ "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ diff --git a/mcp/servers/mokossh/.mokogitea/workflows/mcp-auto-release.yml b/mcp/servers/mokossh/.mokogitea/workflows/mcp-auto-release.yml index b2b0b6e..d3ef2ef 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/mcp-auto-release.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/mcp-auto-release.yml @@ -38,7 +38,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 # ── Build ──────────────────────────────────────────────────────── @@ -89,8 +89,8 @@ jobs: # ── Version ────────────────────────────────────────────────────── - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -212,7 +212,7 @@ jobs: steps.version.outputs.skip != 'true' && steps.check.outputs.tag_exists != 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | VERSION="${{ steps.version.outputs.version }}" RELEASE_TAG="${{ steps.version.outputs.release_tag }}" diff --git a/mcp/servers/mokossh/.mokogitea/workflows/pre-release.yml b/mcp/servers/mokossh/.mokogitea/workflows/pre-release.yml index bc28df7..b43a80b 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/pre-release.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/pre-release.yml @@ -43,7 +43,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} - name: Setup PHP run: | @@ -54,7 +54,7 @@ jobs: - name: Setup mokoplatform tools env: - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting run: | git clone --depth 1 --branch main --quiet "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" /tmp/mokoplatform-api @@ -89,7 +89,7 @@ jobs: # Commit version bump git config --local user.email "gitea-actions[bot]@mokoconsulting.tech" git config --local user.name "gitea-actions[bot]" - git remote set-url origin "https://jmiller:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" + git remote set-url origin "https://jmiller:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" git add -A git diff --cached --quiet || { git commit -m "chore(version): bump to ${VERSION} [skip ci]" @@ -154,7 +154,7 @@ jobs: SHA256="${{ steps.zip.outputs.sha256 }}" ZIP_NAME="${{ steps.zip.outputs.zip_name }}" EXT_ELEMENT="${{ steps.meta.outputs.ext_element }}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" API="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" BRANCH=$(git branch --show-current) @@ -212,13 +212,13 @@ jobs: - name: "Sync updates.xml to all branches" if: steps.platform.outputs.platform == 'joomla' run: | - php /tmp/mokoplatform-api/cli/updates_xml_sync.php --path . --current "${{ github.ref_name }}" --branches main,dev --version "${{ steps.meta.outputs.version }}" --token "${{ secrets.GA_TOKEN }}" --org "${GITEA_ORG}" --repo "${GITEA_REPO}" --gitea-url "${GITEA_URL}" + php /tmp/mokoplatform-api/cli/updates_xml_sync.php --path . --current "${{ github.ref_name }}" --branches main,dev --version "${{ steps.meta.outputs.version }}" --token "${{ secrets.MOKOGITEA_TOKEN }}" --org "${GITEA_ORG}" --repo "${GITEA_REPO}" --gitea-url "${GITEA_URL}" - name: "Delete lesser pre-release channels (cascade)" continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" STABILITY="${{ steps.meta.outputs.stability }}" # Cascade: rc → beta,alpha,dev | beta → alpha,dev | alpha → dev | dev → nothing diff --git a/mcp/servers/mokossh/.mokogitea/workflows/repo-health.yml b/mcp/servers/mokossh/.mokogitea/workflows/repo-health.yml index 4371829..2e412e2 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/repo-health.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/repo-health.yml @@ -81,7 +81,7 @@ jobs: - name: Check actor permission (admin only) id: perm env: - TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} + TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} REPO: ${{ github.repository }} ACTOR: ${{ github.actor }} run: | diff --git a/mcp/servers/mokossh/.mokogitea/workflows/repository-cleanup.yml b/mcp/servers/mokossh/.mokogitea/workflows/repository-cleanup.yml index b5d68a9..bb90e00 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/repository-cleanup.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/repository-cleanup.yml @@ -67,12 +67,12 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 - name: Check actor permission env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | ACTOR="${{ github.actor }}" # Schedule triggers use github-actions[bot] @@ -185,7 +185,7 @@ jobs: - name: Reset labels to standard set if: steps.tasks.outputs.reset_labels == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" echo "## 🏷️ Label Reset" >> $GITHUB_STEP_SUMMARY @@ -267,7 +267,7 @@ jobs: - name: Delete old sync branches if: steps.tasks.outputs.clean_branches == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CURRENT="chore/sync-mokostandards-v04.05" @@ -295,7 +295,7 @@ jobs: - name: Clean up workflow runs if: steps.tasks.outputs.clean_workflows == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" echo "## 🔄 Workflow Run Cleanup" >> $GITHUB_STEP_SUMMARY @@ -317,7 +317,7 @@ jobs: - name: Delete old workflow run logs if: steps.tasks.outputs.clean_logs == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CUTOFF=$(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v-30d +%Y-%m-%dT%H:%M:%SZ) @@ -494,7 +494,7 @@ jobs: - name: Delete old closed issues if: steps.tasks.outputs.delete_closed_issues == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CUTOFF=$(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v-30d +%Y-%m-%dT%H:%M:%SZ) diff --git a/mcp/servers/mokossh/.mokogitea/workflows/standards-compliance.yml b/mcp/servers/mokossh/.mokogitea/workflows/standards-compliance.yml index f0d7155..1927cb0 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/standards-compliance.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/standards-compliance.yml @@ -506,8 +506,8 @@ jobs: - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -1970,8 +1970,8 @@ jobs: - name: Install API Package env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader @@ -2042,8 +2042,8 @@ jobs: - name: Install API Package env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader @@ -2537,7 +2537,7 @@ jobs: - name: Create or reopen tracking issue for standards violations if: failure() env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" RUN_URL="${{ github.server_url }}/${REPO}/actions/runs/${{ github.run_id }}" diff --git a/mcp/servers/mokossh/.mokogitea/workflows/sync-version-on-merge.yml b/mcp/servers/mokossh/.mokogitea/workflows/sync-version-on-merge.yml index 3a21acc..dbdcd6c 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/sync-version-on-merge.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/sync-version-on-merge.yml @@ -44,7 +44,7 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 - name: Set up PHP @@ -55,8 +55,8 @@ jobs: - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -106,7 +106,7 @@ jobs: --create-issue \ --repo "${{ github.repository }}" env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} - name: Commit updated files if: ${{ steps.readme_version.outputs.skip != 'true' && inputs.dry_run != true }} diff --git a/mcp/servers/mokosuite_api/.mokogitea/auto-assign.yml b/mcp/servers/mokosuite_api/.mokogitea/auto-assign.yml index 1996c1c..c6fdd55 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/auto-assign.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/auto-assign.yml @@ -32,7 +32,7 @@ jobs: steps: - name: Assign unassigned issues env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" ASSIGNEE="jmiller" diff --git a/mcp/servers/mokosuite_api/.mokogitea/auto-dev-issue.yml b/mcp/servers/mokosuite_api/.mokogitea/auto-dev-issue.yml index f61e1fc..76a99fe 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/auto-dev-issue.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/auto-dev-issue.yml @@ -47,7 +47,7 @@ jobs: steps: - name: Create tracking issue and sub-issues env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | # For manual dispatch, use input; for auto, use event ref if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then diff --git a/mcp/servers/mokosuite_api/.mokogitea/auto-release.yml b/mcp/servers/mokosuite_api/.mokogitea/auto-release.yml index eabe619..0f0035e 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/auto-release.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/auto-release.yml @@ -59,13 +59,13 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -275,7 +275,7 @@ jobs: steps.version.outputs.skip != 'true' && steps.check.outputs.tag_exists != 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | VERSION="${{ steps.version.outputs.version }}" RELEASE_TAG="${{ steps.version.outputs.release_tag }}" diff --git a/mcp/servers/mokosuite_api/.mokogitea/cascade-dev.yml b/mcp/servers/mokosuite_api/.mokogitea/cascade-dev.yml index d4780b1..4fe707a 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/cascade-dev.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/cascade-dev.yml @@ -52,7 +52,7 @@ jobs: - name: Discover target branches id: branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" @@ -93,7 +93,7 @@ jobs: - name: Cascade to all target branches if: steps.branches.outputs.targets != '' env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" SHORT_SHA="${GITHUB_SHA:0:7}" diff --git a/mcp/servers/mokosuite_api/.mokogitea/deploy-demo.yml b/mcp/servers/mokosuite_api/.mokogitea/deploy-demo.yml index 206d178..f7ac035 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/deploy-demo.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/deploy-demo.yml @@ -84,7 +84,7 @@ jobs: # Prefer the org-scoped GH_TOKEN secret (needed for the org membership # fallback). Falls back to the built-in github.token so the collaborator # endpoint still works even if GH_TOKEN is not configured. - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | ACTOR="${{ github.actor }}" REPO="${{ github.repository }}" @@ -421,8 +421,8 @@ jobs: - name: Setup MokoStandards deploy tools if: steps.source.outputs.skip == 'false' && steps.remote.outputs.skip != 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -647,7 +647,7 @@ jobs: - name: Create or update failure issue if: failure() && steps.remote.outputs.skip != 'true' && steps.conn.outputs.skip != 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" RUN_URL="${{ github.server_url }}/${REPO}/actions/runs/${{ github.run_id }}" diff --git a/mcp/servers/mokosuite_api/.mokogitea/deploy-dev.yml b/mcp/servers/mokosuite_api/.mokogitea/deploy-dev.yml index 1814ea0..ddd9a08 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/deploy-dev.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/deploy-dev.yml @@ -89,7 +89,7 @@ jobs: # Prefer the org-scoped GH_TOKEN secret (needed for the org membership # fallback). Falls back to the built-in github.token so the collaborator # endpoint still works even if GH_TOKEN is not configured. - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | ACTOR="${{ github.actor }}" REPO="${{ github.repository }}" @@ -421,8 +421,8 @@ jobs: - name: Setup MokoStandards deploy tools if: steps.source.outputs.skip == 'false' && steps.remote.outputs.skip != 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ diff --git a/mcp/servers/mokosuite_api/.mokogitea/mcp-auto-release.yml b/mcp/servers/mokosuite_api/.mokogitea/mcp-auto-release.yml index 74daa33..f067a94 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/mcp-auto-release.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/mcp-auto-release.yml @@ -38,7 +38,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 # ── Build ──────────────────────────────────────────────────────── @@ -89,8 +89,8 @@ jobs: # ── Version ────────────────────────────────────────────────────── - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -212,7 +212,7 @@ jobs: steps.version.outputs.skip != 'true' && steps.check.outputs.tag_exists != 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | VERSION="${{ steps.version.outputs.version }}" RELEASE_TAG="${{ steps.version.outputs.release_tag }}" diff --git a/mcp/servers/mokosuite_api/.mokogitea/repository-cleanup.yml b/mcp/servers/mokosuite_api/.mokogitea/repository-cleanup.yml index 96c2a8c..ac61c33 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/repository-cleanup.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/repository-cleanup.yml @@ -67,12 +67,12 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 - name: Check actor permission env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | ACTOR="${{ github.actor }}" # Schedule triggers use github-actions[bot] @@ -185,7 +185,7 @@ jobs: - name: Reset labels to standard set if: steps.tasks.outputs.reset_labels == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" echo "## 🏷️ Label Reset" >> $GITHUB_STEP_SUMMARY @@ -267,7 +267,7 @@ jobs: - name: Delete old sync branches if: steps.tasks.outputs.clean_branches == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CURRENT="chore/sync-mokostandards-v04.05" @@ -295,7 +295,7 @@ jobs: - name: Clean up workflow runs if: steps.tasks.outputs.clean_workflows == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" echo "## 🔄 Workflow Run Cleanup" >> $GITHUB_STEP_SUMMARY @@ -317,7 +317,7 @@ jobs: - name: Delete old workflow run logs if: steps.tasks.outputs.clean_logs == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CUTOFF=$(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v-30d +%Y-%m-%dT%H:%M:%SZ) @@ -494,7 +494,7 @@ jobs: - name: Delete old closed issues if: steps.tasks.outputs.delete_closed_issues == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CUTOFF=$(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v-30d +%Y-%m-%dT%H:%M:%SZ) diff --git a/mcp/servers/mokosuite_api/.mokogitea/standards-compliance.yml b/mcp/servers/mokosuite_api/.mokogitea/standards-compliance.yml index 44ab47d..4b22054 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/standards-compliance.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/standards-compliance.yml @@ -506,8 +506,8 @@ jobs: - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -1970,8 +1970,8 @@ jobs: - name: Install API Package env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader @@ -2042,8 +2042,8 @@ jobs: - name: Install API Package env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader @@ -2537,7 +2537,7 @@ jobs: - name: Create or reopen tracking issue for standards violations if: failure() env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" RUN_URL="${{ github.server_url }}/${REPO}/actions/runs/${{ github.run_id }}" diff --git a/mcp/servers/mokosuite_api/.mokogitea/sync-version-on-merge.yml b/mcp/servers/mokosuite_api/.mokogitea/sync-version-on-merge.yml index 60715f6..dbf32bd 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/sync-version-on-merge.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/sync-version-on-merge.yml @@ -44,7 +44,7 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 - name: Set up PHP @@ -55,8 +55,8 @@ jobs: - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -106,7 +106,7 @@ jobs: --create-issue \ --repo "${{ github.repository }}" env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} - name: Commit updated files if: ${{ steps.readme_version.outputs.skip != 'true' && inputs.dry_run != true }} diff --git a/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-assign.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-assign.yml index 348596f..c0f538f 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-assign.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-assign.yml @@ -32,7 +32,7 @@ jobs: steps: - name: Assign unassigned issues env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" ASSIGNEE="jmiller" diff --git a/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-dev-issue.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-dev-issue.yml index 07f7779..bdd7db7 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-dev-issue.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-dev-issue.yml @@ -47,7 +47,7 @@ jobs: steps: - name: Create tracking issue and sub-issues env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | # For manual dispatch, use input; for auto, use event ref if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then diff --git a/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-release.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-release.yml index 121f0e5..cf54398 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-release.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-release.yml @@ -55,14 +55,14 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 0 - name: Setup mokoplatform tools env: - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN }}"}}' + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT }}"}}' run: | # Ensure PHP + Composer are available if ! command -v composer &> /dev/null; then @@ -287,7 +287,7 @@ jobs: git config --local user.email "gitea-actions[bot]@mokoconsulting.tech" git config --local user.name "gitea-actions[bot]" # Set push URL with token for branch-protected repos - git remote set-url origin "https://jmiller:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" + git remote set-url origin "https://jmiller:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" git add -A git commit -m "chore(release): build ${VERSION} [skip ci]" \ --author="gitea-actions[bot] " @@ -350,20 +350,20 @@ jobs: RELEASE_NAME="${EXT_NAME} ${VERSION} (${TYPE_PREFIX}${EXT_ELEMENT}-${VERSION})" # Delete existing release if present (overwrite, not append) - EXISTING=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + EXISTING=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/tags/${RELEASE_TAG}" 2>/dev/null || true) EXISTING_ID=$(echo "$EXISTING" | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('id',''))" 2>/dev/null || true) if [ -n "$EXISTING_ID" ]; then - curl -sS -X DELETE -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sS -X DELETE -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/${EXISTING_ID}" 2>/dev/null || true - curl -sS -X DELETE -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sS -X DELETE -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/tags/${RELEASE_TAG}" 2>/dev/null || true echo "Deleted previous stable release (id: ${EXISTING_ID})" fi # Create fresh release - curl -sf -X POST -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sf -X POST -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ -H "Content-Type: application/json" \ "${API_BASE}/releases" \ -d "$(python3 -c "import json; print(json.dumps({ @@ -385,7 +385,7 @@ jobs: API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" # All ZIPs upload to the major release tag (vXX) - RELEASE_JSON=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + RELEASE_JSON=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/tags/${RELEASE_TAG}" 2>/dev/null || true) RELEASE_ID=$(echo "$RELEASE_JSON" | python3 -c "import sys,json; print(json.load(sys.stdin).get('id',''))" 2>/dev/null || true) if [ -z "$RELEASE_ID" ]; then @@ -444,7 +444,7 @@ jobs: SHA256_TAR=$(sha256sum "/tmp/${TAR_NAME}" | cut -d' ' -f1) # -- Delete existing assets with same name before uploading ------ - ASSETS=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + ASSETS=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/${RELEASE_ID}/assets" 2>/dev/null || echo "[]") for ASSET_NAME in "$ZIP_NAME" "$TAR_NAME"; do ASSET_ID=$(echo "$ASSETS" | python3 -c " @@ -455,18 +455,18 @@ jobs: print(a['id']); break " 2>/dev/null || true) if [ -n "$ASSET_ID" ]; then - curl -sf -X DELETE -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sf -X DELETE -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/${RELEASE_ID}/assets/${ASSET_ID}" 2>/dev/null || true fi done # -- Upload both to release tag ---------------------------------- - curl -sf -X POST -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sf -X POST -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ -H "Content-Type: application/octet-stream" \ --data-binary @"/tmp/${ZIP_NAME}" \ "${API_BASE}/releases/${RELEASE_ID}/assets?name=${ZIP_NAME}" > /dev/null 2>&1 || true - curl -sf -X POST -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sf -X POST -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ -H "Content-Type: application/octet-stream" \ --data-binary @"/tmp/${TAR_NAME}" \ "${API_BASE}/releases/${RELEASE_ID}/assets?name=${TAR_NAME}" > /dev/null 2>&1 || true @@ -523,7 +523,7 @@ jobs: git push || true # Sync updates.xml to main via direct API (always runs — may be on version/XX branch) - GA_TOKEN="${{ secrets.GA_TOKEN }}" + GA_TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" API="${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}" FILE_SHA=$(curl -sf -H "Authorization: token ${GA_TOKEN}" \ @@ -605,7 +605,7 @@ jobs: [ -n "$SHA256_TAR" ] && BODY="${BODY}| \`${TAR_NAME}\` | \`${SHA256_TAR}\` |\n" # Get release ID and update body - RELEASE_ID=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + RELEASE_ID=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/tags/${RELEASE_TAG}" 2>/dev/null | \ python3 -c "import sys,json; print(json.load(sys.stdin).get('id',''))" 2>/dev/null || true) @@ -617,7 +617,7 @@ jobs: req = urllib.request.Request( '${API_BASE}/releases/${RELEASE_ID}', data=data, - headers={'Authorization': 'token ${{ secrets.GA_TOKEN }}', 'Content-Type': 'application/json'}, + headers={'Authorization': 'token ${{ secrets.MOKOGITEA_TOKEN }}', 'Content-Type': 'application/json'}, method='PATCH' ) urllib.request.urlopen(req) @@ -629,10 +629,10 @@ jobs: if: >- steps.version.outputs.skip != 'true' && steps.version.outputs.stability == 'stable' && - secrets.GH_TOKEN != '' + secrets.GH_PAT != '' continue-on-error: true env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GH_TOKEN: ${{ secrets.GH_PAT }} run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" RELEASE_TAG="${{ steps.version.outputs.release_tag }}" @@ -644,7 +644,7 @@ jobs: [ -z "$NOTES" ] && NOTES="Release ${VERSION}" echo "$NOTES" > /tmp/release_notes.md - EXISTING=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/tags/$RELEASE_TAG" 2>/dev/null | jq -r ".tag_name // empty" || true) + EXISTING=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/tags/$RELEASE_TAG" 2>/dev/null | jq -r ".tag_name // empty" || true) if [ -z "$EXISTING" ]; then gh release create "$RELEASE_TAG" \ @@ -661,8 +661,8 @@ jobs: # Upload assets to GitHub mirror for PKG in /tmp/${EXT_ELEMENT:-pkg}-${VERSION}.*; do if [ -f "$PKG" ]; then - _RELID=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/tags/$RELEASE_TAG" 2>/dev/null | jq -r ".id // empty") - [ -n "$_RELID" ] && curl -sf -X POST -H "Authorization: token ${{ secrets.GA_TOKEN }}" -H "Content-Type: application/octet-stream" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/${_RELID}/assets?name=$(basename $PKG)" --data-binary "@$PKG" > /dev/null 2>&1 || true + _RELID=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/tags/$RELEASE_TAG" 2>/dev/null | jq -r ".id // empty") + [ -n "$_RELID" ] && curl -sf -X POST -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" -H "Content-Type: application/octet-stream" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/${_RELID}/assets?name=$(basename $PKG)" --data-binary "@$PKG" > /dev/null 2>&1 || true fi done echo "GitHub mirror updated: ${GH_REPO} ${RELEASE_TAG}" >> $GITHUB_STEP_SUMMARY @@ -671,14 +671,14 @@ jobs: - name: "Step 10: Push main to GitHub mirror" if: >- steps.version.outputs.skip != 'true' && - secrets.GH_TOKEN != '' + secrets.GH_PAT != '' continue-on-error: true run: | GH_REPO="${{ vars.GH_MIRROR_REPO || github.repository }}" GH_ORG=$(echo "$GH_REPO" | cut -d/ -f1) GH_NAME=$(echo "$GH_REPO" | cut -d/ -f2) - git remote add github "https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${GH_ORG}/${GH_NAME}.git" 2>/dev/null || \ - git remote set-url github "https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${GH_ORG}/${GH_NAME}.git" + git remote add github "https://x-access-token:${{ secrets.GH_PAT }}@github.com/${GH_ORG}/${GH_NAME}.git" 2>/dev/null || \ + git remote set-url github "https://x-access-token:${{ secrets.GH_PAT }}@github.com/${GH_ORG}/${GH_NAME}.git" git fetch origin main --depth=1 git push github origin/main:refs/heads/main --force 2>/dev/null \ && echo "main branch pushed to GitHub mirror" \ @@ -691,7 +691,7 @@ jobs: run: | php /tmp/mokoplatform-api/cli/release_cascade.php \ --stability stable \ - --token "${{ secrets.GA_TOKEN }}" \ + --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --org "${GITEA_ORG}" --repo "${GITEA_REPO}" \ --gitea-url "${GITEA_URL}" 2>/dev/null || true @@ -700,7 +700,7 @@ jobs: continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" # Delete dev branch curl -sf -X DELETE -H "Authorization: token ${TOKEN}" \ @@ -724,7 +724,7 @@ jobs: continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" MOD_FILE="${{ steps.platform.outputs.mod_file }}" ENCODED_PATH=$(echo "$MOD_FILE" | sed 's|^\./||' | python3 -c "import sys,urllib.parse; print(urllib.parse.quote(sys.stdin.read().strip()))") FILE_RESP=$(curl -sf -H "Authorization: token ${TOKEN}" "${API_BASE}/contents/${ENCODED_PATH}?ref=dev" 2>/dev/null || true) diff --git a/mcp/servers/mokosuite_api/.mokogitea/workflows/cascade-dev.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/cascade-dev.yml index a690e21..e0511e8 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/workflows/cascade-dev.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/cascade-dev.yml @@ -52,7 +52,7 @@ jobs: - name: Discover target branches id: branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" @@ -93,7 +93,7 @@ jobs: - name: Cascade to all target branches if: steps.branches.outputs.targets != '' env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" SHORT_SHA="${GITHUB_SHA:0:7}" diff --git a/mcp/servers/mokosuite_api/.mokogitea/workflows/cleanup.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/cleanup.yml index ae3e017..941a954 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/workflows/cleanup.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/cleanup.yml @@ -33,11 +33,11 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} - name: Delete merged branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Merged Branch Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" @@ -66,7 +66,7 @@ jobs: - name: Clean old workflow runs env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Workflow Run Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" diff --git a/mcp/servers/mokosuite_api/.mokogitea/workflows/deploy-manual.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/deploy-manual.yml index a660ce8..1d9c8da 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/workflows/deploy-manual.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/deploy-manual.yml @@ -42,10 +42,10 @@ jobs: - name: Setup mokoplatform tools env: - GA_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_HOST: ${{ secrets.GA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}' + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_HOST: ${{ secrets.MOKOGITEA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.MOKOGITEA_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch main --quiet \ "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ diff --git a/mcp/servers/mokosuite_api/.mokogitea/workflows/mcp-auto-release.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/mcp-auto-release.yml index b2b0b6e..d3ef2ef 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/workflows/mcp-auto-release.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/mcp-auto-release.yml @@ -38,7 +38,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 # ── Build ──────────────────────────────────────────────────────── @@ -89,8 +89,8 @@ jobs: # ── Version ────────────────────────────────────────────────────── - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -212,7 +212,7 @@ jobs: steps.version.outputs.skip != 'true' && steps.check.outputs.tag_exists != 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | VERSION="${{ steps.version.outputs.version }}" RELEASE_TAG="${{ steps.version.outputs.release_tag }}" diff --git a/mcp/servers/mokosuite_api/.mokogitea/workflows/pre-release.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/pre-release.yml index bc28df7..b43a80b 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/workflows/pre-release.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/pre-release.yml @@ -43,7 +43,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} - name: Setup PHP run: | @@ -54,7 +54,7 @@ jobs: - name: Setup mokoplatform tools env: - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting run: | git clone --depth 1 --branch main --quiet "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" /tmp/mokoplatform-api @@ -89,7 +89,7 @@ jobs: # Commit version bump git config --local user.email "gitea-actions[bot]@mokoconsulting.tech" git config --local user.name "gitea-actions[bot]" - git remote set-url origin "https://jmiller:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" + git remote set-url origin "https://jmiller:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" git add -A git diff --cached --quiet || { git commit -m "chore(version): bump to ${VERSION} [skip ci]" @@ -154,7 +154,7 @@ jobs: SHA256="${{ steps.zip.outputs.sha256 }}" ZIP_NAME="${{ steps.zip.outputs.zip_name }}" EXT_ELEMENT="${{ steps.meta.outputs.ext_element }}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" API="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" BRANCH=$(git branch --show-current) @@ -212,13 +212,13 @@ jobs: - name: "Sync updates.xml to all branches" if: steps.platform.outputs.platform == 'joomla' run: | - php /tmp/mokoplatform-api/cli/updates_xml_sync.php --path . --current "${{ github.ref_name }}" --branches main,dev --version "${{ steps.meta.outputs.version }}" --token "${{ secrets.GA_TOKEN }}" --org "${GITEA_ORG}" --repo "${GITEA_REPO}" --gitea-url "${GITEA_URL}" + php /tmp/mokoplatform-api/cli/updates_xml_sync.php --path . --current "${{ github.ref_name }}" --branches main,dev --version "${{ steps.meta.outputs.version }}" --token "${{ secrets.MOKOGITEA_TOKEN }}" --org "${GITEA_ORG}" --repo "${GITEA_REPO}" --gitea-url "${GITEA_URL}" - name: "Delete lesser pre-release channels (cascade)" continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" STABILITY="${{ steps.meta.outputs.stability }}" # Cascade: rc → beta,alpha,dev | beta → alpha,dev | alpha → dev | dev → nothing diff --git a/mcp/servers/mokosuite_api/.mokogitea/workflows/repo-health.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/repo-health.yml index 4371829..2e412e2 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/workflows/repo-health.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/repo-health.yml @@ -81,7 +81,7 @@ jobs: - name: Check actor permission (admin only) id: perm env: - TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} + TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} REPO: ${{ github.repository }} ACTOR: ${{ github.actor }} run: | diff --git a/mcp/servers/mokosuite_api/.mokogitea/workflows/repository-cleanup.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/repository-cleanup.yml index b5d68a9..bb90e00 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/workflows/repository-cleanup.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/repository-cleanup.yml @@ -67,12 +67,12 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 - name: Check actor permission env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | ACTOR="${{ github.actor }}" # Schedule triggers use github-actions[bot] @@ -185,7 +185,7 @@ jobs: - name: Reset labels to standard set if: steps.tasks.outputs.reset_labels == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" echo "## 🏷️ Label Reset" >> $GITHUB_STEP_SUMMARY @@ -267,7 +267,7 @@ jobs: - name: Delete old sync branches if: steps.tasks.outputs.clean_branches == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CURRENT="chore/sync-mokostandards-v04.05" @@ -295,7 +295,7 @@ jobs: - name: Clean up workflow runs if: steps.tasks.outputs.clean_workflows == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" echo "## 🔄 Workflow Run Cleanup" >> $GITHUB_STEP_SUMMARY @@ -317,7 +317,7 @@ jobs: - name: Delete old workflow run logs if: steps.tasks.outputs.clean_logs == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CUTOFF=$(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v-30d +%Y-%m-%dT%H:%M:%SZ) @@ -494,7 +494,7 @@ jobs: - name: Delete old closed issues if: steps.tasks.outputs.delete_closed_issues == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CUTOFF=$(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v-30d +%Y-%m-%dT%H:%M:%SZ) diff --git a/mcp/servers/mokosuite_api/.mokogitea/workflows/standards-compliance.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/standards-compliance.yml index f0d7155..1927cb0 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/workflows/standards-compliance.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/standards-compliance.yml @@ -506,8 +506,8 @@ jobs: - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -1970,8 +1970,8 @@ jobs: - name: Install API Package env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader @@ -2042,8 +2042,8 @@ jobs: - name: Install API Package env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader @@ -2537,7 +2537,7 @@ jobs: - name: Create or reopen tracking issue for standards violations if: failure() env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" RUN_URL="${{ github.server_url }}/${REPO}/actions/runs/${{ github.run_id }}" diff --git a/mcp/servers/mokosuite_api/.mokogitea/workflows/sync-version-on-merge.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/sync-version-on-merge.yml index 3a21acc..dbdcd6c 100644 --- a/mcp/servers/mokosuite_api/.mokogitea/workflows/sync-version-on-merge.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/sync-version-on-merge.yml @@ -44,7 +44,7 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 - name: Set up PHP @@ -55,8 +55,8 @@ jobs: - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -106,7 +106,7 @@ jobs: --create-issue \ --repo "${{ github.repository }}" env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} - name: Commit updated files if: ${{ steps.readme_version.outputs.skip != 'true' && inputs.dry_run != true }} diff --git a/mcp/servers/windows/.mokogitea/workflows/auto-assign.yml b/mcp/servers/windows/.mokogitea/workflows/auto-assign.yml index 348596f..c0f538f 100644 --- a/mcp/servers/windows/.mokogitea/workflows/auto-assign.yml +++ b/mcp/servers/windows/.mokogitea/workflows/auto-assign.yml @@ -32,7 +32,7 @@ jobs: steps: - name: Assign unassigned issues env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" ASSIGNEE="jmiller" diff --git a/mcp/servers/windows/.mokogitea/workflows/auto-dev-issue.yml b/mcp/servers/windows/.mokogitea/workflows/auto-dev-issue.yml index 07f7779..bdd7db7 100644 --- a/mcp/servers/windows/.mokogitea/workflows/auto-dev-issue.yml +++ b/mcp/servers/windows/.mokogitea/workflows/auto-dev-issue.yml @@ -47,7 +47,7 @@ jobs: steps: - name: Create tracking issue and sub-issues env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | # For manual dispatch, use input; for auto, use event ref if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then diff --git a/mcp/servers/windows/.mokogitea/workflows/auto-release.yml b/mcp/servers/windows/.mokogitea/workflows/auto-release.yml index e318e7a..3103b6b 100644 --- a/mcp/servers/windows/.mokogitea/workflows/auto-release.yml +++ b/mcp/servers/windows/.mokogitea/workflows/auto-release.yml @@ -53,14 +53,14 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 0 - name: Setup mokoplatform tools env: - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN }}"}}' + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT }}"}}' run: | # Ensure PHP + Composer are available if ! command -v composer &> /dev/null; then @@ -286,7 +286,7 @@ jobs: git config --local user.email "gitea-actions[bot]@mokoconsulting.tech" git config --local user.name "gitea-actions[bot]" # Set push URL with token for branch-protected repos - git remote set-url origin "https://jmiller:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" + git remote set-url origin "https://jmiller:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" git add -A git commit -m "chore(release): build ${VERSION} [skip ci]" \ --author="gitea-actions[bot] " @@ -349,20 +349,20 @@ jobs: RELEASE_NAME="${EXT_NAME} ${VERSION} (${TYPE_PREFIX}${EXT_ELEMENT}-${VERSION})" # Delete existing release if present (overwrite, not append) - EXISTING=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + EXISTING=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/tags/${RELEASE_TAG}" 2>/dev/null || true) EXISTING_ID=$(echo "$EXISTING" | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('id',''))" 2>/dev/null || true) if [ -n "$EXISTING_ID" ]; then - curl -sS -X DELETE -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sS -X DELETE -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/${EXISTING_ID}" 2>/dev/null || true - curl -sS -X DELETE -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sS -X DELETE -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/tags/${RELEASE_TAG}" 2>/dev/null || true echo "Deleted previous stable release (id: ${EXISTING_ID})" fi # Create fresh release - curl -sf -X POST -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sf -X POST -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ -H "Content-Type: application/json" \ "${API_BASE}/releases" \ -d "$(python3 -c "import json; print(json.dumps({ @@ -384,7 +384,7 @@ jobs: API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" # All ZIPs upload to the major release tag (vXX) - RELEASE_JSON=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + RELEASE_JSON=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/tags/${RELEASE_TAG}" 2>/dev/null || true) RELEASE_ID=$(echo "$RELEASE_JSON" | python3 -c "import sys,json; print(json.load(sys.stdin).get('id',''))" 2>/dev/null || true) if [ -z "$RELEASE_ID" ]; then @@ -443,7 +443,7 @@ jobs: SHA256_TAR=$(sha256sum "/tmp/${TAR_NAME}" | cut -d' ' -f1) # -- Delete existing assets with same name before uploading ------ - ASSETS=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + ASSETS=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/${RELEASE_ID}/assets" 2>/dev/null || echo "[]") for ASSET_NAME in "$ZIP_NAME" "$TAR_NAME"; do ASSET_ID=$(echo "$ASSETS" | python3 -c " @@ -454,18 +454,18 @@ jobs: print(a['id']); break " 2>/dev/null || true) if [ -n "$ASSET_ID" ]; then - curl -sf -X DELETE -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sf -X DELETE -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/${RELEASE_ID}/assets/${ASSET_ID}" 2>/dev/null || true fi done # -- Upload both to release tag ---------------------------------- - curl -sf -X POST -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sf -X POST -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ -H "Content-Type: application/octet-stream" \ --data-binary @"/tmp/${ZIP_NAME}" \ "${API_BASE}/releases/${RELEASE_ID}/assets?name=${ZIP_NAME}" > /dev/null 2>&1 || true - curl -sf -X POST -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + curl -sf -X POST -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ -H "Content-Type: application/octet-stream" \ --data-binary @"/tmp/${TAR_NAME}" \ "${API_BASE}/releases/${RELEASE_ID}/assets?name=${TAR_NAME}" > /dev/null 2>&1 || true @@ -522,7 +522,7 @@ jobs: git push || true # Sync updates.xml to main via direct API (always runs — may be on version/XX branch) - GA_TOKEN="${{ secrets.GA_TOKEN }}" + GA_TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" API="${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}" FILE_SHA=$(curl -sf -H "Authorization: token ${GA_TOKEN}" \ @@ -604,7 +604,7 @@ jobs: [ -n "$SHA256_TAR" ] && BODY="${BODY}| \`${TAR_NAME}\` | \`${SHA256_TAR}\` |\n" # Get release ID and update body - RELEASE_ID=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" \ + RELEASE_ID=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ "${API_BASE}/releases/tags/${RELEASE_TAG}" 2>/dev/null | \ python3 -c "import sys,json; print(json.load(sys.stdin).get('id',''))" 2>/dev/null || true) @@ -616,7 +616,7 @@ jobs: req = urllib.request.Request( '${API_BASE}/releases/${RELEASE_ID}', data=data, - headers={'Authorization': 'token ${{ secrets.GA_TOKEN }}', 'Content-Type': 'application/json'}, + headers={'Authorization': 'token ${{ secrets.MOKOGITEA_TOKEN }}', 'Content-Type': 'application/json'}, method='PATCH' ) urllib.request.urlopen(req) @@ -628,10 +628,10 @@ jobs: if: >- steps.version.outputs.skip != 'true' && steps.version.outputs.stability == 'stable' && - secrets.GH_TOKEN != '' + secrets.GH_PAT != '' continue-on-error: true env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GH_TOKEN: ${{ secrets.GH_PAT }} run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" RELEASE_TAG="${{ steps.version.outputs.release_tag }}" @@ -643,7 +643,7 @@ jobs: [ -z "$NOTES" ] && NOTES="Release ${VERSION}" echo "$NOTES" > /tmp/release_notes.md - EXISTING=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/tags/$RELEASE_TAG" 2>/dev/null | jq -r ".tag_name // empty" || true) + EXISTING=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/tags/$RELEASE_TAG" 2>/dev/null | jq -r ".tag_name // empty" || true) if [ -z "$EXISTING" ]; then gh release create "$RELEASE_TAG" \ @@ -660,8 +660,8 @@ jobs: # Upload assets to GitHub mirror for PKG in /tmp/${EXT_ELEMENT:-pkg}-${VERSION}.*; do if [ -f "$PKG" ]; then - _RELID=$(curl -sf -H "Authorization: token ${{ secrets.GA_TOKEN }}" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/tags/$RELEASE_TAG" 2>/dev/null | jq -r ".id // empty") - [ -n "$_RELID" ] && curl -sf -X POST -H "Authorization: token ${{ secrets.GA_TOKEN }}" -H "Content-Type: application/octet-stream" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/${_RELID}/assets?name=$(basename $PKG)" --data-binary "@$PKG" > /dev/null 2>&1 || true + _RELID=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/tags/$RELEASE_TAG" 2>/dev/null | jq -r ".id // empty") + [ -n "$_RELID" ] && curl -sf -X POST -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" -H "Content-Type: application/octet-stream" "${GITEA_URL:-https://git.mokoconsulting.tech}/api/v1/repos/${{ github.repository }}/releases/${_RELID}/assets?name=$(basename $PKG)" --data-binary "@$PKG" > /dev/null 2>&1 || true fi done echo "GitHub mirror updated: ${GH_REPO} ${RELEASE_TAG}" >> $GITHUB_STEP_SUMMARY @@ -670,14 +670,14 @@ jobs: - name: "Step 10: Push main to GitHub mirror" if: >- steps.version.outputs.skip != 'true' && - secrets.GH_TOKEN != '' + secrets.GH_PAT != '' continue-on-error: true run: | GH_REPO="${{ vars.GH_MIRROR_REPO || github.repository }}" GH_ORG=$(echo "$GH_REPO" | cut -d/ -f1) GH_NAME=$(echo "$GH_REPO" | cut -d/ -f2) - git remote add github "https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${GH_ORG}/${GH_NAME}.git" 2>/dev/null || \ - git remote set-url github "https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${GH_ORG}/${GH_NAME}.git" + git remote add github "https://x-access-token:${{ secrets.GH_PAT }}@github.com/${GH_ORG}/${GH_NAME}.git" 2>/dev/null || \ + git remote set-url github "https://x-access-token:${{ secrets.GH_PAT }}@github.com/${GH_ORG}/${GH_NAME}.git" git fetch origin main --depth=1 git push github origin/main:refs/heads/main --force 2>/dev/null \ && echo "main branch pushed to GitHub mirror" \ @@ -690,7 +690,7 @@ jobs: run: | php /tmp/mokoplatform-api/cli/release_cascade.php \ --stability stable \ - --token "${{ secrets.GA_TOKEN }}" \ + --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --org "${GITEA_ORG}" --repo "${GITEA_REPO}" \ --gitea-url "${GITEA_URL}" 2>/dev/null || true @@ -699,7 +699,7 @@ jobs: continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" # Delete dev branch curl -sf -X DELETE -H "Authorization: token ${TOKEN}" \ @@ -723,7 +723,7 @@ jobs: continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" MOD_FILE="${{ steps.platform.outputs.mod_file }}" ENCODED_PATH=$(echo "$MOD_FILE" | sed 's|^\./||' | python3 -c "import sys,urllib.parse; print(urllib.parse.quote(sys.stdin.read().strip()))") FILE_RESP=$(curl -sf -H "Authorization: token ${TOKEN}" "${API_BASE}/contents/${ENCODED_PATH}?ref=dev" 2>/dev/null || true) diff --git a/mcp/servers/windows/.mokogitea/workflows/cascade-dev.yml b/mcp/servers/windows/.mokogitea/workflows/cascade-dev.yml index 4dbb135..12d5610 100644 --- a/mcp/servers/windows/.mokogitea/workflows/cascade-dev.yml +++ b/mcp/servers/windows/.mokogitea/workflows/cascade-dev.yml @@ -52,7 +52,7 @@ jobs: - name: Discover target branches id: branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" @@ -93,7 +93,7 @@ jobs: - name: Cascade to all target branches if: steps.branches.outputs.targets != '' env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" SHORT_SHA="${GITHUB_SHA:0:7}" diff --git a/mcp/servers/windows/.mokogitea/workflows/cleanup.yml b/mcp/servers/windows/.mokogitea/workflows/cleanup.yml index 3a81856..ec100b1 100644 --- a/mcp/servers/windows/.mokogitea/workflows/cleanup.yml +++ b/mcp/servers/windows/.mokogitea/workflows/cleanup.yml @@ -33,11 +33,11 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} - name: Delete merged branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Merged Branch Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" @@ -66,7 +66,7 @@ jobs: - name: Clean old workflow runs env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Workflow Run Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" diff --git a/mcp/servers/windows/.mokogitea/workflows/deploy-manual.yml b/mcp/servers/windows/.mokogitea/workflows/deploy-manual.yml index bb133ed..6908af1 100644 --- a/mcp/servers/windows/.mokogitea/workflows/deploy-manual.yml +++ b/mcp/servers/windows/.mokogitea/workflows/deploy-manual.yml @@ -42,10 +42,10 @@ jobs: - name: Setup MokoStandards tools env: - GA_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_HOST: ${{ secrets.GA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}' + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_HOST: ${{ secrets.MOKOGITEA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.MOKOGITEA_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch main --quiet \ "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/MokoStandards-API.git" \ diff --git a/mcp/servers/windows/.mokogitea/workflows/mcp-auto-release.yml b/mcp/servers/windows/.mokogitea/workflows/mcp-auto-release.yml index 14c565c..631cb83 100644 --- a/mcp/servers/windows/.mokogitea/workflows/mcp-auto-release.yml +++ b/mcp/servers/windows/.mokogitea/workflows/mcp-auto-release.yml @@ -38,7 +38,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 # ── Build ──────────────────────────────────────────────────────── @@ -89,8 +89,8 @@ jobs: # ── Version ────────────────────────────────────────────────────── - name: Setup mokoplatform tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/MokoConsulting/mokoplatform.git" \ @@ -212,7 +212,7 @@ jobs: steps.version.outputs.skip != 'true' && steps.check.outputs.tag_exists != 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | VERSION="${{ steps.version.outputs.version }}" RELEASE_TAG="${{ steps.version.outputs.release_tag }}" diff --git a/mcp/servers/windows/.mokogitea/workflows/pre-release.yml b/mcp/servers/windows/.mokogitea/workflows/pre-release.yml index dc7001f..ca98406 100644 --- a/mcp/servers/windows/.mokogitea/workflows/pre-release.yml +++ b/mcp/servers/windows/.mokogitea/workflows/pre-release.yml @@ -43,7 +43,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} - name: Setup tools run: | @@ -58,7 +58,7 @@ jobs: sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl >/dev/null 2>&1 fi git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ /tmp/mokoplatform-api fi # Set MOKO_CLI to whichever path exists @@ -110,7 +110,7 @@ jobs: # Commit version bump git config --local user.email "gitea-actions[bot]@mokoconsulting.tech" git config --local user.name "gitea-actions[bot]" - git remote set-url origin "https://jmiller:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" + git remote set-url origin "https://jmiller:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" git add -A git diff --cached --quiet || { git commit -m "chore(version): pre-release bump to ${VERSION} [skip ci]" @@ -225,7 +225,7 @@ jobs: SHA256="${{ steps.zip.outputs.sha256 }}" ZIP_NAME="${{ steps.meta.outputs.zip_name }}" EXT_ELEMENT="${{ steps.meta.outputs.ext_element }}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" API="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" BRANCH=$(git branch --show-current) @@ -351,7 +351,7 @@ jobs: continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" php ${MOKO_CLI}/release_cascade.php \ --stability "${{ steps.meta.outputs.stability }}" \ diff --git a/mcp/servers/windows/.mokogitea/workflows/repo-health.yml b/mcp/servers/windows/.mokogitea/workflows/repo-health.yml index 869267e..334a06e 100644 --- a/mcp/servers/windows/.mokogitea/workflows/repo-health.yml +++ b/mcp/servers/windows/.mokogitea/workflows/repo-health.yml @@ -85,7 +85,7 @@ jobs: - name: Check actor permission (admin only) id: perm env: - TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} + TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} REPO: ${{ github.repository }} ACTOR: ${{ github.actor }} run: | diff --git a/mcp/servers/windows/.mokogitea/workflows/repository-cleanup.yml b/mcp/servers/windows/.mokogitea/workflows/repository-cleanup.yml index b5d68a9..bb90e00 100644 --- a/mcp/servers/windows/.mokogitea/workflows/repository-cleanup.yml +++ b/mcp/servers/windows/.mokogitea/workflows/repository-cleanup.yml @@ -67,12 +67,12 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 - name: Check actor permission env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | ACTOR="${{ github.actor }}" # Schedule triggers use github-actions[bot] @@ -185,7 +185,7 @@ jobs: - name: Reset labels to standard set if: steps.tasks.outputs.reset_labels == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" echo "## 🏷️ Label Reset" >> $GITHUB_STEP_SUMMARY @@ -267,7 +267,7 @@ jobs: - name: Delete old sync branches if: steps.tasks.outputs.clean_branches == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CURRENT="chore/sync-mokostandards-v04.05" @@ -295,7 +295,7 @@ jobs: - name: Clean up workflow runs if: steps.tasks.outputs.clean_workflows == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" echo "## 🔄 Workflow Run Cleanup" >> $GITHUB_STEP_SUMMARY @@ -317,7 +317,7 @@ jobs: - name: Delete old workflow run logs if: steps.tasks.outputs.clean_logs == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CUTOFF=$(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v-30d +%Y-%m-%dT%H:%M:%SZ) @@ -494,7 +494,7 @@ jobs: - name: Delete old closed issues if: steps.tasks.outputs.delete_closed_issues == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CUTOFF=$(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v-30d +%Y-%m-%dT%H:%M:%SZ) diff --git a/mcp/servers/windows/.mokogitea/workflows/standards-compliance.yml b/mcp/servers/windows/.mokogitea/workflows/standards-compliance.yml index f0d7155..1927cb0 100644 --- a/mcp/servers/windows/.mokogitea/workflows/standards-compliance.yml +++ b/mcp/servers/windows/.mokogitea/workflows/standards-compliance.yml @@ -506,8 +506,8 @@ jobs: - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -1970,8 +1970,8 @@ jobs: - name: Install API Package env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader @@ -2042,8 +2042,8 @@ jobs: - name: Install API Package env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader @@ -2537,7 +2537,7 @@ jobs: - name: Create or reopen tracking issue for standards violations if: failure() env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" RUN_URL="${{ github.server_url }}/${REPO}/actions/runs/${{ github.run_id }}" diff --git a/mcp/servers/windows/.mokogitea/workflows/sync-version-on-merge.yml b/mcp/servers/windows/.mokogitea/workflows/sync-version-on-merge.yml index 3a21acc..dbdcd6c 100644 --- a/mcp/servers/windows/.mokogitea/workflows/sync-version-on-merge.yml +++ b/mcp/servers/windows/.mokogitea/workflows/sync-version-on-merge.yml @@ -44,7 +44,7 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 - name: Set up PHP @@ -55,8 +55,8 @@ jobs: - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -106,7 +106,7 @@ jobs: --create-issue \ --repo "${{ github.repository }}" env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} - name: Commit updated files if: ${{ steps.readme_version.outputs.skip != 'true' && inputs.dry_run != true }} diff --git a/templates/repos/client-waas/.mokogitea/branch-protection.yml b/templates/repos/client-waas/.mokogitea/branch-protection.yml index 8adde0a..8a6709a 100644 --- a/templates/repos/client-waas/.mokogitea/branch-protection.yml +++ b/templates/repos/client-waas/.mokogitea/branch-protection.yml @@ -57,7 +57,7 @@ jobs: - name: Determine target repos id: repos env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1" @@ -105,7 +105,7 @@ jobs: - name: Apply protection rules env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} DRY_RUN: ${{ inputs.dry_run || 'false' }} run: | API="${GITEA_URL}/api/v1" diff --git a/templates/repos/client-waas/.mokogitea/workflows/ci-client.yml b/templates/repos/client-waas/.mokogitea/workflows/ci-client.yml index 66fa840..094e18f 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/ci-client.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/ci-client.yml @@ -37,7 +37,7 @@ jobs: - name: Setup mokoplatform run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ /tmp/mokoplatform 2>/dev/null || true - name: Read version diff --git a/templates/repos/client-waas/.mokogitea/workflows/cleanup.yml b/templates/repos/client-waas/.mokogitea/workflows/cleanup.yml index 3a81856..ec100b1 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/cleanup.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/cleanup.yml @@ -33,11 +33,11 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} - name: Delete merged branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Merged Branch Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" @@ -66,7 +66,7 @@ jobs: - name: Clean old workflow runs env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Workflow Run Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" diff --git a/templates/repos/client-waas/.mokogitea/workflows/client-release.yml b/templates/repos/client-waas/.mokogitea/workflows/client-release.yml index c8a9fb2..0de56a2 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/client-release.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/client-release.yml @@ -62,7 +62,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 0 clean: true @@ -77,7 +77,7 @@ jobs: - name: Setup mokoplatform run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ /tmp/mokoplatform 2>/dev/null || true # ── Step 1: Read version from manifest ──────────────────── @@ -133,7 +133,7 @@ jobs: NAME="${{ steps.version.outputs.name }}" ZIP_PATH="${{ steps.build.outputs.zip_path }}" API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" CLI="/tmp/mokoplatform/cli/release_manage.php" # Extract release notes via CLI @@ -185,7 +185,7 @@ jobs: --branches main,dev \ --current "$(git branch --show-current)" \ --version "$VERSION" \ - --token "${{ secrets.GA_TOKEN }}" + --token "${{ secrets.MOKOGITEA_TOKEN }}" # ── Step 5: Bump version on dev branch ───────────────────── - name: Bump dev version @@ -195,7 +195,7 @@ jobs: --path . \ --branch dev \ --bump minor \ - --token "${{ secrets.GA_TOKEN }}" \ + --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --api-base "${GITEA_URL}/api/v1/repos/${{ github.repository }}" # ── Summary ─────────────────────────────────────────────── diff --git a/templates/repos/client-waas/.mokogitea/workflows/health-check.yml b/templates/repos/client-waas/.mokogitea/workflows/health-check.yml index 2f8af01..1944140 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/health-check.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/health-check.yml @@ -34,12 +34,12 @@ jobs: - name: Setup mokoplatform run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ /tmp/mokoplatform 2>/dev/null || true - name: Run health check env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | # Get update URL from manifest, use API with auth for private repos UPDATE_URL=$(grep -m1 '/dev/null | sed 's/.*>\(http[^<]*\)<.*/\1/' || echo "") diff --git a/templates/repos/client-waas/.mokogitea/workflows/issue-branch.yml b/templates/repos/client-waas/.mokogitea/workflows/issue-branch.yml index 48c147c..4f28425 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/issue-branch.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/issue-branch.yml @@ -28,7 +28,7 @@ jobs: steps: - name: Create branch and comment run: | - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" ISSUE_NUM="${{ github.event.issue.number }}" ISSUE_TITLE="${{ github.event.issue.title }}" diff --git a/templates/repos/client-waas/.mokogitea/workflows/joomla-compat.yml b/templates/repos/client-waas/.mokogitea/workflows/joomla-compat.yml index 50313a2..a20f62d 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/joomla-compat.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/joomla-compat.yml @@ -37,7 +37,7 @@ jobs: - name: Setup mokoplatform run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ /tmp/mokoplatform 2>/dev/null || true - name: Check compatibility diff --git a/templates/repos/client-waas/.mokogitea/workflows/release-verify.yml b/templates/repos/client-waas/.mokogitea/workflows/release-verify.yml index 2f6e753..ef5404f 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/release-verify.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/release-verify.yml @@ -36,7 +36,7 @@ jobs: - name: Setup mokoplatform run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ /tmp/mokoplatform 2>/dev/null || true - name: Read version @@ -51,7 +51,7 @@ jobs: continue-on-error: true run: | php /tmp/mokoplatform/cli/release_validate.php \ - --token "${{ secrets.GA_TOKEN }}" \ + --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --api-base "${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" \ --version "${{ steps.version.outputs.version }}" \ --streams stable,rc,beta,alpha,development diff --git a/templates/repos/client-waas/.mokogitea/workflows/theme-lint.yml b/templates/repos/client-waas/.mokogitea/workflows/theme-lint.yml index dbed263..3d6c9fb 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/theme-lint.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/theme-lint.yml @@ -35,7 +35,7 @@ jobs: - name: Setup mokoplatform run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ /tmp/mokoplatform 2>/dev/null || true - name: Lint theme diff --git a/templates/repos/dolibarr/.mokogitea/branch-protection.yml b/templates/repos/dolibarr/.mokogitea/branch-protection.yml index 8adde0a..8a6709a 100644 --- a/templates/repos/dolibarr/.mokogitea/branch-protection.yml +++ b/templates/repos/dolibarr/.mokogitea/branch-protection.yml @@ -57,7 +57,7 @@ jobs: - name: Determine target repos id: repos env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1" @@ -105,7 +105,7 @@ jobs: - name: Apply protection rules env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} DRY_RUN: ${{ inputs.dry_run || 'false' }} run: | API="${GITEA_URL}/api/v1" diff --git a/templates/repos/dolibarr/.mokogitea/workflows/ci-dolibarr.yml b/templates/repos/dolibarr/.mokogitea/workflows/ci-dolibarr.yml index 0e41c78..2bc0dde 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/ci-dolibarr.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/ci-dolibarr.yml @@ -55,7 +55,7 @@ jobs: - name: Clone MokoStandards env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -63,7 +63,7 @@ jobs: - name: Install dependencies env: - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install \ @@ -281,7 +281,7 @@ jobs: - name: Install dependencies env: - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install \ diff --git a/templates/repos/dolibarr/.mokogitea/workflows/cleanup.yml b/templates/repos/dolibarr/.mokogitea/workflows/cleanup.yml index 3a81856..ec100b1 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/cleanup.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/cleanup.yml @@ -33,11 +33,11 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} - name: Delete merged branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Merged Branch Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" @@ -66,7 +66,7 @@ jobs: - name: Clean old workflow runs env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Workflow Run Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" diff --git a/templates/repos/dolibarr/.mokogitea/workflows/deploy-demo.yml b/templates/repos/dolibarr/.mokogitea/workflows/deploy-demo.yml index 22b069f..df49a8d 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/deploy-demo.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/deploy-demo.yml @@ -66,10 +66,10 @@ jobs: - name: Setup MokoStandards tools env: - GA_TOKEN: ${{ secrets.GA_TOKEN || github.token }} - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || github.token }} - MOKO_CLONE_HOST: ${{ secrets.GA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}' + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_HOST: ${{ secrets.MOKOGITEA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.MOKOGITEA_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch main --quiet \ "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/MokoStandards-API.git" \ diff --git a/templates/repos/dolibarr/.mokogitea/workflows/deploy-dev.yml b/templates/repos/dolibarr/.mokogitea/workflows/deploy-dev.yml index 3af4f9b..71c8c4d 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/deploy-dev.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/deploy-dev.yml @@ -66,10 +66,10 @@ jobs: - name: Setup MokoStandards tools env: - GA_TOKEN: ${{ secrets.GA_TOKEN || github.token }} - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || github.token }} - MOKO_CLONE_HOST: ${{ secrets.GA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}' + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_HOST: ${{ secrets.MOKOGITEA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.MOKOGITEA_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch main --quiet \ "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/MokoStandards-API.git" \ diff --git a/templates/repos/dolibarr/.mokogitea/workflows/deploy-manual.yml b/templates/repos/dolibarr/.mokogitea/workflows/deploy-manual.yml index bb133ed..6908af1 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/deploy-manual.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/deploy-manual.yml @@ -42,10 +42,10 @@ jobs: - name: Setup MokoStandards tools env: - GA_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_HOST: ${{ secrets.GA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}' + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_HOST: ${{ secrets.MOKOGITEA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.MOKOGITEA_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch main --quiet \ "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/MokoStandards-API.git" \ diff --git a/templates/repos/dolibarr/.mokogitea/workflows/issue-branch.yml b/templates/repos/dolibarr/.mokogitea/workflows/issue-branch.yml index 48c147c..4f28425 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/issue-branch.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/issue-branch.yml @@ -28,7 +28,7 @@ jobs: steps: - name: Create branch and comment run: | - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" ISSUE_NUM="${{ github.event.issue.number }}" ISSUE_TITLE="${{ github.event.issue.title }}" diff --git a/templates/repos/dolibarr/.mokogitea/workflows/publish-to-mokodolimods.yml b/templates/repos/dolibarr/.mokogitea/workflows/publish-to-mokodolimods.yml index 7123f81..31767ac 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/publish-to-mokodolimods.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/publish-to-mokodolimods.yml @@ -149,7 +149,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: repository: mokoconsulting-tech/mokodolimods - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.GH_PAT }} path: mokodolimods - name: Create release branch @@ -207,7 +207,7 @@ jobs: - name: Create pull request on mokodolimods if: steps.commit.outputs.changed == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GH_TOKEN: ${{ secrets.GH_PAT }} run: | MODULE="${{ steps.branch.outputs.module }}" TAG="${{ steps.branch.outputs.tag }}" diff --git a/templates/repos/generic/.mokogitea/branch-protection.yml b/templates/repos/generic/.mokogitea/branch-protection.yml index 8adde0a..8a6709a 100644 --- a/templates/repos/generic/.mokogitea/branch-protection.yml +++ b/templates/repos/generic/.mokogitea/branch-protection.yml @@ -57,7 +57,7 @@ jobs: - name: Determine target repos id: repos env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1" @@ -105,7 +105,7 @@ jobs: - name: Apply protection rules env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} DRY_RUN: ${{ inputs.dry_run || 'false' }} run: | API="${GITEA_URL}/api/v1" diff --git a/templates/repos/generic/.mokogitea/workflows/cleanup.yml b/templates/repos/generic/.mokogitea/workflows/cleanup.yml index 3a81856..ec100b1 100644 --- a/templates/repos/generic/.mokogitea/workflows/cleanup.yml +++ b/templates/repos/generic/.mokogitea/workflows/cleanup.yml @@ -33,11 +33,11 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} - name: Delete merged branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Merged Branch Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" @@ -66,7 +66,7 @@ jobs: - name: Clean old workflow runs env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Workflow Run Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" diff --git a/templates/repos/generic/.mokogitea/workflows/deploy-manual.yml b/templates/repos/generic/.mokogitea/workflows/deploy-manual.yml index bb133ed..6908af1 100644 --- a/templates/repos/generic/.mokogitea/workflows/deploy-manual.yml +++ b/templates/repos/generic/.mokogitea/workflows/deploy-manual.yml @@ -42,10 +42,10 @@ jobs: - name: Setup MokoStandards tools env: - GA_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_HOST: ${{ secrets.GA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}' + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_HOST: ${{ secrets.MOKOGITEA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.MOKOGITEA_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch main --quiet \ "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/MokoStandards-API.git" \ diff --git a/templates/repos/generic/.mokogitea/workflows/issue-branch.yml b/templates/repos/generic/.mokogitea/workflows/issue-branch.yml index 48c147c..4f28425 100644 --- a/templates/repos/generic/.mokogitea/workflows/issue-branch.yml +++ b/templates/repos/generic/.mokogitea/workflows/issue-branch.yml @@ -28,7 +28,7 @@ jobs: steps: - name: Create branch and comment run: | - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" ISSUE_NUM="${{ github.event.issue.number }}" ISSUE_TITLE="${{ github.event.issue.title }}" diff --git a/templates/repos/joomla/.mokogitea/branch-protection.yml b/templates/repos/joomla/.mokogitea/branch-protection.yml index 8adde0a..8a6709a 100644 --- a/templates/repos/joomla/.mokogitea/branch-protection.yml +++ b/templates/repos/joomla/.mokogitea/branch-protection.yml @@ -57,7 +57,7 @@ jobs: - name: Determine target repos id: repos env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1" @@ -105,7 +105,7 @@ jobs: - name: Apply protection rules env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} DRY_RUN: ${{ inputs.dry_run || 'false' }} run: | API="${GITEA_URL}/api/v1" diff --git a/templates/repos/joomla/.mokogitea/workflows/ci-joomla.yml b/templates/repos/joomla/.mokogitea/workflows/ci-joomla.yml index 4156095..04f95d4 100644 --- a/templates/repos/joomla/.mokogitea/workflows/ci-joomla.yml +++ b/templates/repos/joomla/.mokogitea/workflows/ci-joomla.yml @@ -47,8 +47,8 @@ jobs: - name: Setup mokoplatform tools env: - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || github.token }} - MOKO_CLONE_HOST: ${{ secrets.GA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_HOST: ${{ secrets.MOKOGITEA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} run: | if [ -d "/tmp/mokoplatform" ] || [ -d "/opt/mokoplatform" ]; then echo "mokoplatform already available on runner — skipping clone" @@ -60,7 +60,7 @@ jobs: - name: Install dependencies env: - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || secrets.GA_TOKEN || github.token }}"}}' + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || secrets.MOKOGITEA_TOKEN || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install \ @@ -370,7 +370,7 @@ jobs: - name: Install dependencies env: - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || secrets.GA_TOKEN || github.token }}"}}' + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || secrets.MOKOGITEA_TOKEN || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install \ @@ -420,7 +420,7 @@ jobs: - name: Install dependencies env: - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || secrets.GA_TOKEN || github.token }}"}}' + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || secrets.MOKOGITEA_TOKEN || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install --no-interaction --prefer-dist --optimize-autoloader @@ -487,7 +487,7 @@ jobs: steps: - name: Trigger pre-release build env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} REPO: ${{ github.repository }} BRANCH: ${{ github.head_ref }} run: | diff --git a/templates/repos/joomla/.mokogitea/workflows/cleanup.yml b/templates/repos/joomla/.mokogitea/workflows/cleanup.yml index 3a81856..ec100b1 100644 --- a/templates/repos/joomla/.mokogitea/workflows/cleanup.yml +++ b/templates/repos/joomla/.mokogitea/workflows/cleanup.yml @@ -33,11 +33,11 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} - name: Delete merged branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Merged Branch Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" @@ -66,7 +66,7 @@ jobs: - name: Clean old workflow runs env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Workflow Run Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" diff --git a/templates/repos/joomla/.mokogitea/workflows/issue-branch.yml b/templates/repos/joomla/.mokogitea/workflows/issue-branch.yml index 48c147c..4f28425 100644 --- a/templates/repos/joomla/.mokogitea/workflows/issue-branch.yml +++ b/templates/repos/joomla/.mokogitea/workflows/issue-branch.yml @@ -28,7 +28,7 @@ jobs: steps: - name: Create branch and comment run: | - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" ISSUE_NUM="${{ github.event.issue.number }}" ISSUE_TITLE="${{ github.event.issue.title }}" diff --git a/templates/repos/mcp/.mokogitea/branch-protection.yml b/templates/repos/mcp/.mokogitea/branch-protection.yml index 8adde0a..8a6709a 100644 --- a/templates/repos/mcp/.mokogitea/branch-protection.yml +++ b/templates/repos/mcp/.mokogitea/branch-protection.yml @@ -57,7 +57,7 @@ jobs: - name: Determine target repos id: repos env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | API="${GITEA_URL}/api/v1" @@ -105,7 +105,7 @@ jobs: - name: Apply protection rules env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} DRY_RUN: ${{ inputs.dry_run || 'false' }} run: | API="${GITEA_URL}/api/v1" diff --git a/templates/repos/mcp/.mokogitea/workflows/auto-assign.yml b/templates/repos/mcp/.mokogitea/workflows/auto-assign.yml index 348596f..c0f538f 100644 --- a/templates/repos/mcp/.mokogitea/workflows/auto-assign.yml +++ b/templates/repos/mcp/.mokogitea/workflows/auto-assign.yml @@ -32,7 +32,7 @@ jobs: steps: - name: Assign unassigned issues env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" ASSIGNEE="jmiller" diff --git a/templates/repos/mcp/.mokogitea/workflows/auto-dev-issue.yml b/templates/repos/mcp/.mokogitea/workflows/auto-dev-issue.yml index 07f7779..bdd7db7 100644 --- a/templates/repos/mcp/.mokogitea/workflows/auto-dev-issue.yml +++ b/templates/repos/mcp/.mokogitea/workflows/auto-dev-issue.yml @@ -47,7 +47,7 @@ jobs: steps: - name: Create tracking issue and sub-issues env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | # For manual dispatch, use input; for auto, use event ref if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then diff --git a/templates/repos/mcp/.mokogitea/workflows/cleanup.yml b/templates/repos/mcp/.mokogitea/workflows/cleanup.yml index 3a81856..ec100b1 100644 --- a/templates/repos/mcp/.mokogitea/workflows/cleanup.yml +++ b/templates/repos/mcp/.mokogitea/workflows/cleanup.yml @@ -33,11 +33,11 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} - name: Delete merged branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Merged Branch Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" @@ -66,7 +66,7 @@ jobs: - name: Clean old workflow runs env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Workflow Run Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" diff --git a/templates/repos/mcp/.mokogitea/workflows/deploy-manual.yml b/templates/repos/mcp/.mokogitea/workflows/deploy-manual.yml index bb133ed..6908af1 100644 --- a/templates/repos/mcp/.mokogitea/workflows/deploy-manual.yml +++ b/templates/repos/mcp/.mokogitea/workflows/deploy-manual.yml @@ -42,10 +42,10 @@ jobs: - name: Setup MokoStandards tools env: - GA_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} - MOKO_CLONE_HOST: ${{ secrets.GA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}' + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN || secrets.MOKOGITEA_TOKEN || github.token }} + MOKO_CLONE_HOST: ${{ secrets.MOKOGITEA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.MOKOGITEA_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch main --quiet \ "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/MokoStandards-API.git" \ diff --git a/templates/repos/mcp/.mokogitea/workflows/issue-branch.yml b/templates/repos/mcp/.mokogitea/workflows/issue-branch.yml index 48c147c..4f28425 100644 --- a/templates/repos/mcp/.mokogitea/workflows/issue-branch.yml +++ b/templates/repos/mcp/.mokogitea/workflows/issue-branch.yml @@ -28,7 +28,7 @@ jobs: steps: - name: Create branch and comment run: | - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" ISSUE_NUM="${{ github.event.issue.number }}" ISSUE_TITLE="${{ github.event.issue.title }}" diff --git a/templates/repos/mcp/.mokogitea/workflows/mcp-auto-release.yml b/templates/repos/mcp/.mokogitea/workflows/mcp-auto-release.yml index 14c565c..631cb83 100644 --- a/templates/repos/mcp/.mokogitea/workflows/mcp-auto-release.yml +++ b/templates/repos/mcp/.mokogitea/workflows/mcp-auto-release.yml @@ -38,7 +38,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 # ── Build ──────────────────────────────────────────────────────── @@ -89,8 +89,8 @@ jobs: # ── Version ────────────────────────────────────────────────────── - name: Setup mokoplatform tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/MokoConsulting/mokoplatform.git" \ @@ -212,7 +212,7 @@ jobs: steps.version.outputs.skip != 'true' && steps.check.outputs.tag_exists != 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | VERSION="${{ steps.version.outputs.version }}" RELEASE_TAG="${{ steps.version.outputs.release_tag }}" diff --git a/templates/repos/mcp/.mokogitea/workflows/repository-cleanup.yml b/templates/repos/mcp/.mokogitea/workflows/repository-cleanup.yml index b5d68a9..bb90e00 100644 --- a/templates/repos/mcp/.mokogitea/workflows/repository-cleanup.yml +++ b/templates/repos/mcp/.mokogitea/workflows/repository-cleanup.yml @@ -67,12 +67,12 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 - name: Check actor permission env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | ACTOR="${{ github.actor }}" # Schedule triggers use github-actions[bot] @@ -185,7 +185,7 @@ jobs: - name: Reset labels to standard set if: steps.tasks.outputs.reset_labels == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" echo "## 🏷️ Label Reset" >> $GITHUB_STEP_SUMMARY @@ -267,7 +267,7 @@ jobs: - name: Delete old sync branches if: steps.tasks.outputs.clean_branches == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CURRENT="chore/sync-mokostandards-v04.05" @@ -295,7 +295,7 @@ jobs: - name: Clean up workflow runs if: steps.tasks.outputs.clean_workflows == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" echo "## 🔄 Workflow Run Cleanup" >> $GITHUB_STEP_SUMMARY @@ -317,7 +317,7 @@ jobs: - name: Delete old workflow run logs if: steps.tasks.outputs.clean_logs == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CUTOFF=$(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v-30d +%Y-%m-%dT%H:%M:%SZ) @@ -494,7 +494,7 @@ jobs: - name: Delete old closed issues if: steps.tasks.outputs.delete_closed_issues == 'true' env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" CUTOFF=$(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v-30d +%Y-%m-%dT%H:%M:%SZ) diff --git a/templates/repos/mcp/.mokogitea/workflows/standards-compliance.yml b/templates/repos/mcp/.mokogitea/workflows/standards-compliance.yml index f0d7155..1927cb0 100644 --- a/templates/repos/mcp/.mokogitea/workflows/standards-compliance.yml +++ b/templates/repos/mcp/.mokogitea/workflows/standards-compliance.yml @@ -506,8 +506,8 @@ jobs: - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -1970,8 +1970,8 @@ jobs: - name: Install API Package env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader @@ -2042,8 +2042,8 @@ jobs: - name: Install API Package env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | if [ -f "composer.json" ]; then composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader @@ -2537,7 +2537,7 @@ jobs: - name: Create or reopen tracking issue for standards violations if: failure() env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} run: | REPO="${{ github.repository }}" RUN_URL="${{ github.server_url }}/${REPO}/actions/runs/${{ github.run_id }}" diff --git a/templates/repos/mcp/.mokogitea/workflows/sync-version-on-merge.yml b/templates/repos/mcp/.mokogitea/workflows/sync-version-on-merge.yml index 3a21acc..dbdcd6c 100644 --- a/templates/repos/mcp/.mokogitea/workflows/sync-version-on-merge.yml +++ b/templates/repos/mcp/.mokogitea/workflows/sync-version-on-merge.yml @@ -44,7 +44,7 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: - token: ${{ secrets.GH_TOKEN || github.token }} + token: ${{ secrets.GH_PAT || github.token }} fetch-depth: 0 - name: Set up PHP @@ -55,8 +55,8 @@ jobs: - name: Setup MokoStandards tools env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} - COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} + COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_PAT || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ "https://x-access-token:${GH_TOKEN}@github.com/mokoconsulting-tech/MokoStandards.git" \ @@ -106,7 +106,7 @@ jobs: --create-issue \ --repo "${{ github.repository }}" env: - GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} + GH_TOKEN: ${{ secrets.GH_PAT || github.token }} - name: Commit updated files if: ${{ steps.readme_version.outputs.skip != 'true' && inputs.dry_run != true }} -- 2.52.0