Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: resolve secrets access error in sync-main-to-dev workflow

LearningCircuite50496664a50
diff --git a/.github/workflows/sync-main-to-dev.yml b/.github/workflows/sync-main-to-dev.yml
index 8c937f32cf..d70388354a 100644
--- a/.github/workflows/sync-main-to-dev.yml
+++ b/.github/workflows/sync-main-to-dev.yml
@@ -320,7 +320,7 @@ jobs:
core.setOutput('commit_count', commits.length.toString());
- name: Auto-approve PR
- if: steps.verify_commits.outputs.safe_to_merge == 'true' && secrets.PAT_TOKEN != ''
+ if: steps.verify_commits.outputs.safe_to_merge == 'true'
id: auto_approve
uses: actions/github-script@v7
with:
@@ -334,7 +334,7 @@ jobs:
}
try {
- // Approve the PR
+ // Approve the PR (this will fail if PAT_TOKEN is not set or invalid)
const { data: review } = await github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
@@ -346,7 +346,10 @@ jobs:
console.log(`Successfully approved PR #${prNumber}`);
core.setOutput('approved', 'true');
} catch (error) {
- console.log(`Failed to approve PR: ${error.message}`);
+ console.log(`Could not approve PR: ${error.message}`);
+ if (error.message.includes('Resource not accessible')) {
+ console.log('Note: PAT_TOKEN may not be configured or may lack required permissions');
+ }
core.setOutput('approved', 'false');
}