Skip to content

Commit f0d68da

Browse files
fix(phase4): update secret name from WIKI_TOKEN to PROJECTS_TOKEN
Corrected secret name to match repository configuration. PROJECTS_TOKEN is already configured and used for both project board sync and wiki publishing. Changes: - sync-to-wiki.yml: Use PROJECTS_TOKEN for wiki authentication - .phase4-state.md: Updated all documentation references - CLAUDE.md: Updated setup instructions This completes Phase 4 corrections based on user feedback. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4b75f18 commit f0d68da

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/sync-to-wiki.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ jobs:
167167
uses: Andrew-Chen-Wang/github-wiki-action@v4
168168
env:
169169
WIKI_DIR: wiki/
170-
GH_TOKEN: ${{ secrets.WIKI_TOKEN }}
170+
GH_TOKEN: ${{ secrets.PROJECTS_TOKEN }}
171171
GH_MAIL: wiki-bot@users.noreply.github.com
172172
GH_NAME: Wiki Bot
173173
REPO: ${{ github.repository }}
@@ -184,7 +184,7 @@ jobs:
184184
run: |
185185
echo "❌ Wiki sync failed!"
186186
echo "Please check:"
187-
echo " 1. WIKI_TOKEN secret is configured with correct permissions"
187+
echo " 1. PROJECTS_TOKEN secret is configured with correct permissions"
188188
echo " 2. Repository wiki is enabled (Settings → Features → Wikis)"
189189
echo " 3. Transformation scripts executed successfully"
190190
echo " 4. Wiki content validates correctly"

.phase4-state.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Production-ready automation for publishing documentation to both GitHub Wiki and
4444
- Comprehensive error handling and notifications
4545

4646
**Key Details**:
47-
- Requires WIKI_TOKEN secret (Personal Access Token)
47+
- Requires PROJECTS_TOKEN secret (Personal Access Token)
4848
- Auto-generates Home.md with feature highlights
4949
- Auto-generates _Footer.md with cross-links
5050
- Validates required pages before publishing
@@ -313,7 +313,7 @@ Production-ready automation for publishing documentation to both GitHub Wiki and
313313

314314
### Authentication
315315

316-
**Wiki Sync**: Requires WIKI_TOKEN secret (Personal Access Token with repo scope)
316+
**Wiki Sync**: Requires PROJECTS_TOKEN secret (Personal Access Token with repo scope)
317317
**GitHub Pages**: Uses GITHUB_TOKEN (no additional setup)
318318

319319
### Maintenance
@@ -374,10 +374,10 @@ User preference: "Fully automatic on every commit" + "Regularly with features"
374374

375375
### Required Actions
376376

377-
1. **Setup WIKI_TOKEN secret**:
377+
1. **Setup PROJECTS_TOKEN secret**:
378378
- Go to GitHub Settings → Developer settings → Personal Access Tokens
379379
- Generate new token with `public_repo` scope
380-
- Add as WIKI_TOKEN secret in repository settings
380+
- Add as PROJECTS_TOKEN secret in repository settings (already configured for this repo)
381381

382382
2. **Enable GitHub Pages**:
383383
- Go to Repository Settings → Pages
@@ -419,7 +419,7 @@ User preference: "Fully automatic on every commit" + "Regularly with features"
419419
- Logs show detailed progress
420420

421421
**Troubleshooting**:
422-
- Wiki sync failures usually due to WIKI_TOKEN
422+
- Wiki sync failures usually due to PROJECTS_TOKEN permissions
423423
- Pages deploy failures usually due to Pages not enabled
424424
- Both workflows have detailed error messages
425425

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ All 4 phases complete:
296296
- **Professional**: VitePress site with search, modern navigation, mobile-responsive
297297
- **Community-Friendly**: GitHub Wiki for quick access, familiar interface
298298
- **Fast**: Wiki sync ~2 min, Pages deploy ~5 min from commit to live
299-
- **Safe**: GITHUB_TOKEN for Pages (no PAT needed), separate WIKI_TOKEN for wiki
299+
- **Safe**: GITHUB_TOKEN for Pages (no PAT needed), PROJECTS_TOKEN for wiki (already configured)
300300

301301
**Architecture**:
302302
```
@@ -307,7 +307,7 @@ docs/ folder (source of truth)
307307
```
308308

309309
**Next Steps (Setup Required)**:
310-
1. Create WIKI_TOKEN secret (Personal Access Token with repo scope)
310+
1. PROJECTS_TOKEN secret already configured ✅ (used for both project board and wiki sync)
311311
2. Enable GitHub Pages (Settings → Pages → Source: GitHub Actions)
312312
3. Enable Wiki (Settings → Features → Wikis)
313313
4. Push to main → both workflows auto-run

0 commit comments

Comments
 (0)