-
Notifications
You must be signed in to change notification settings - Fork 0
Fix wiki sync permissions error #141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add proper permissions (contents: write, pages: write, id-token: write) - Support fallback to WIKI_TOKEN secret for wiki repository access - Add better error handling and logging - Set explicit authentication URL for wiki repository push - Add validation that wiki directory exists before sync Resolves sync-wiki.yml permission denied error when pushing to wiki repository.
|
Claude finished @jasonsiders's task —— View job Pull Request ReviewI've completed a comprehensive review of the wiki sync workflow changes. Here's my detailed feedback: Todo List:
✅ Positive ChangesPermissions Fix: The core issue is properly addressed by adding the Error Handling: Good addition of Enhanced Logging: The emoji-based status messages and
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Static Analysis: Check Passed
Analyzed changed files, and found 0 potential violations. 0 meets or exceeds the set severity threshold:Info⚫ 0 Critical severity violation(s)
🔴 0 High severity violation(s)
🟠 0 Medium severity violation(s)
🟡 0 Low severity violation(s)
⚪ 0 Info severity violation(s)
* Wiki restructuring and automated workflow improvements (#138) * Move wiki from submodule to main repository - Remove git submodule dependency for wiki - Add wiki content directly to main repository - Enable wiki changes to be included in same PR as code changes * updating release.yml to increment patch version by default * new action to sync the wiki * adding action to auto-document * Add wiki files to repository - Include all wiki content as regular files in main repository - Complete removal of submodule configuration * Add complete current wiki documentation - Include all current wiki content from apex-database-layer.wiki - Files will be synced to GitHub wiki via automated workflow - Enables wiki changes to be reviewed in PRs alongside code * Restore LICENSE.md and ensure README.md exists in both locations - Add back LICENSE.md that was accidentally removed - Copy README.md to wiki/ to maintain identical content in both locations * Remove README.md from wiki directory - README.md belongs in main repository, not in wiki - Wiki content should focus on documentation files only * Simplify sync-wiki workflow output - Remove unnecessary Summary step - Add single echo statement to Sync Wiki Files step - Use concise message about wiki sync completion * Fix Claude Code Review workflow authentication - Add github_token parameter to claude-code-action - Resolves workflow validation error when adding new workflow files in PRs - Enables Claude code review to work properly during PR validation * Fix Claude Code Review permissions - Change job-level permissions from read to write for pull-requests and issues - Enables Claude action to create comments and reviews on PRs - Resolves 'Resource not accessible by integration' error * Fix critical syntax error in auto-documentation workflow - Properly close git commit message with quotes - Separate git push command from commit message - Resolves YAML syntax error that would break the workflow * fixing wiki discrepancies * adding Home.md <> REAMDE sync * Fix wiki sync permissions issue (#141) - Add proper permissions (contents: write, pages: write, id-token: write) - Support fallback to WIKI_TOKEN secret for wiki repository access - Add better error handling and logging - Set explicit authentication URL for wiki repository push - Add validation that wiki directory exists before sync Resolves sync-wiki.yml permission denied error when pushing to wiki repository. * adding concurrency (#142)
* rough implementation complete * cleanup * found a fix to coverage cap in databaselayerutils * updating threshold to 100% * reorering elseSelect method overloads * Generate wiki documentation for new TYPEOF query classes - Add The-Soql.TypeOf-Class.md with complete API documentation - Add The-Soql.WhenClause-Class.md with builder pattern documentation - Add _Sidebar.md with organized navigation structure - Include usage examples and cross-references 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * allow claude to trigger workflow * fixing relationships issue TYPEOF * Merge 'main' into 'soql-typeof-support' (#146) * Wiki restructuring and automated workflow improvements (#138) * Move wiki from submodule to main repository - Remove git submodule dependency for wiki - Add wiki content directly to main repository - Enable wiki changes to be included in same PR as code changes * updating release.yml to increment patch version by default * new action to sync the wiki * adding action to auto-document * Add wiki files to repository - Include all wiki content as regular files in main repository - Complete removal of submodule configuration * Add complete current wiki documentation - Include all current wiki content from apex-database-layer.wiki - Files will be synced to GitHub wiki via automated workflow - Enables wiki changes to be reviewed in PRs alongside code * Restore LICENSE.md and ensure README.md exists in both locations - Add back LICENSE.md that was accidentally removed - Copy README.md to wiki/ to maintain identical content in both locations * Remove README.md from wiki directory - README.md belongs in main repository, not in wiki - Wiki content should focus on documentation files only * Simplify sync-wiki workflow output - Remove unnecessary Summary step - Add single echo statement to Sync Wiki Files step - Use concise message about wiki sync completion * Fix Claude Code Review workflow authentication - Add github_token parameter to claude-code-action - Resolves workflow validation error when adding new workflow files in PRs - Enables Claude code review to work properly during PR validation * Fix Claude Code Review permissions - Change job-level permissions from read to write for pull-requests and issues - Enables Claude action to create comments and reviews on PRs - Resolves 'Resource not accessible by integration' error * Fix critical syntax error in auto-documentation workflow - Properly close git commit message with quotes - Separate git push command from commit message - Resolves YAML syntax error that would break the workflow * fixing wiki discrepancies * adding Home.md <> REAMDE sync * Fix wiki sync permissions issue (#141) - Add proper permissions (contents: write, pages: write, id-token: write) - Support fallback to WIKI_TOKEN secret for wiki repository access - Add better error handling and logging - Set explicit authentication URL for wiki repository push - Add validation that wiki directory exists before sync Resolves sync-wiki.yml permission denied error when pushing to wiki repository. * adding concurrency (#142) * Generate wiki documentation for new TYPEOF query classes - Add comprehensive documentation for Soql.TypeOf class - Add complete documentation for Soql.WhenClause class - Update _Sidebar.md with new class references in alphabetical order - Include usage examples, method signatures, and cross-references 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Jason Siders <undefined@users.noreply.github.com> * fixing documentation script to skip committing temporary changed_files.txt --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Jason Siders <undefined@users.noreply.github.com>
Problem
The sync-wiki.yml workflow is failing with a 403 permission denied error when trying to push to the wiki repository:
Solution
contents: write,pages: write,id-token: writeset -efor fail-fast behavior and status reportingChanges
permissionsblock to workflow with necessary write permissionsTesting
The added permissions should resolve the authentication issue with the wiki repository.