Skip to content

Commit bfdf844

Browse files
committed
ci: rename docs-repo PAT to WASMCLOUD_DOCS_BOT_PAT
Distinct name from the WASMCLOUD_BOT_PAT on wasmCloud/wasmCloud, so the two tokens can diverge in scope, lifetime, or owning account without confusion. Signed-off-by: Eric Gregory <eric@cosmonic.com>
1 parent b6c5edb commit bfdf844

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/release-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
tags:
66
- 'docs-v*'
77
# workflow_dispatch is a no-PAT escape hatch. When update-version.yml or
8-
# tag-after-merge.yml can't run (e.g. WASMCLOUD_BOT_PAT expired), dispatch
8+
# tag-after-merge.yml can't run (e.g. WASMCLOUD_DOCS_BOT_PAT expired), dispatch
99
# this workflow directly with a version input to publish the offline docs
1010
# bundle from main HEAD. The GitHub Release, tarball, and container image
1111
# all get created against `docs-v<version>` using GITHUB_TOKEN alone.

.github/workflows/tag-after-merge.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: Tag after release-bump merge
99
#
1010
# workflow_dispatch is a manual escape hatch: pass a version explicitly to
1111
# push a docs-v tag from main without going through the PR-bump flow. Useful
12-
# when update-version.yml has failed to open the PR (e.g. WASMCLOUD_BOT_PAT
12+
# when update-version.yml has failed to open the PR (e.g. WASMCLOUD_DOCS_BOT_PAT
1313
# expired) and the offline docs pipeline needs to catch up.
1414

1515
on:
@@ -41,10 +41,10 @@ jobs:
4141
steps:
4242
- name: Verify bot PAT is available
4343
env:
44-
BOT_PAT: ${{ secrets.WASMCLOUD_BOT_PAT }}
44+
BOT_PAT: ${{ secrets.WASMCLOUD_DOCS_BOT_PAT }}
4545
run: |
4646
if [[ -z "${BOT_PAT}" ]]; then
47-
echo "::error::secrets.WASMCLOUD_BOT_PAT is empty or unset."
47+
echo "::error::secrets.WASMCLOUD_DOCS_BOT_PAT is empty or unset."
4848
echo ""
4949
echo "This workflow needs a bot PAT with 'repo' scope to push the docs-v tag."
5050
echo "A tag pushed by the default GITHUB_TOKEN does NOT trigger downstream"
@@ -55,7 +55,7 @@ jobs:
5555
echo "GitHub Release with GITHUB_TOKEN alone."
5656
echo ""
5757
echo "Rotate/renew the token at:"
58-
echo " Repo → Settings → Secrets and variables → Actions → WASMCLOUD_BOT_PAT"
58+
echo " Repo → Settings → Secrets and variables → Actions → WASMCLOUD_DOCS_BOT_PAT"
5959
exit 1
6060
fi
6161
@@ -66,7 +66,7 @@ jobs:
6666
fetch-depth: 0
6767
# Use bot PAT so the tag push triggers release-docs.yml. A tag pushed
6868
# by the default GITHUB_TOKEN does not fire downstream workflows.
69-
token: ${{ secrets.WASMCLOUD_BOT_PAT }}
69+
token: ${{ secrets.WASMCLOUD_DOCS_BOT_PAT }}
7070

7171
- name: Extract version
7272
id: ver

.github/workflows/update-version.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,26 @@ jobs:
3030
steps:
3131
- name: Verify bot PAT is available
3232
env:
33-
BOT_PAT: ${{ secrets.WASMCLOUD_BOT_PAT }}
33+
BOT_PAT: ${{ secrets.WASMCLOUD_DOCS_BOT_PAT }}
3434
run: |
3535
if [[ -z "${BOT_PAT}" ]]; then
36-
echo "::error::secrets.WASMCLOUD_BOT_PAT is empty or unset."
36+
echo "::error::secrets.WASMCLOUD_DOCS_BOT_PAT is empty or unset."
3737
echo ""
3838
echo "This workflow needs a bot PAT with 'repo' scope to check out the repo,"
3939
echo "run peter-evans/create-pull-request, and let the resulting PR trigger CI."
4040
echo "The default GITHUB_TOKEN cannot substitute — PRs opened by GITHUB_TOKEN"
4141
echo "do not fire downstream workflows."
4242
echo ""
4343
echo "Rotate/renew the token at:"
44-
echo " Repo → Settings → Secrets and variables → Actions → WASMCLOUD_BOT_PAT"
44+
echo " Repo → Settings → Secrets and variables → Actions → WASMCLOUD_DOCS_BOT_PAT"
4545
exit 1
4646
fi
4747
4848
- name: Checkout
4949
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5050
with:
5151
# Use bot PAT so the PR triggers CI workflows.
52-
token: ${{ secrets.WASMCLOUD_BOT_PAT }}
52+
token: ${{ secrets.WASMCLOUD_DOCS_BOT_PAT }}
5353

5454
- name: Update version constant
5555
run: |
@@ -61,7 +61,7 @@ jobs:
6161
- name: Create pull request
6262
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
6363
with:
64-
token: ${{ secrets.WASMCLOUD_BOT_PAT }}
64+
token: ${{ secrets.WASMCLOUD_DOCS_BOT_PAT }}
6565
commit-message: "docs: update wasmCloud version to ${{ env.NEW_VERSION }}"
6666
branch: "docs/update-version-${{ env.NEW_VERSION }}"
6767
title: "docs: update wasmCloud version to ${{ env.NEW_VERSION }}"

0 commit comments

Comments
 (0)