Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): treat an undecryptable connection catalog as empty instead of crashing environment discovery #4454

Closedbwmp(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/4454/headopened View on GitHub

Showing 3 changed files with 65 additions and 32 deletions.

x
0 of 3 viewed, 3 left
29 additions and 0 deletions.github/workflows/sync-upstream.ymlAdded
View file
@@ -0,0 +1,29 @@
+name: Sync fork with upstream
+​
+on:
+ schedule:
+ # Every day at 06:00 UTC
+ - cron: "0 6 * * *"
+ workflow_dispatch:
+​
+permissions:
+ contents: write
+​
+jobs:
+ sync:
+ # Only run on the fork, not on upstream or other forks
+ if: github.repository == 'bwmp/t3code'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Merge upstream into main
+ env:
+ GH_TOKEN: ${{ github.token }}
+ run: |
+ set -euo pipefail
+ response=$(gh api "repos/${{ github.repository }}/merge-upstream" \
+ -f branch=main 2>&1) || {
Thread on line 24

Sync fails on workflow changes

Medium Severity

merge-upstream is authenticated with github.token, which cannot create or update files under .github/workflows/. Whenever upstream changes any workflow, the sync fails with a missing workflow scope error. That permission cannot be granted via the permissions key; a PAT (or GitHub App token) with workflow access is required.

Additional Locations (1)
Fix in Cursor Fix in Web
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 8a3eb0df42c452109f5bd1101ee2acf54ee1d28c. Configure [here](https://www.cursor.com/dashboard/bugbot).
+ echo "::error::Failed to sync with upstream. If this is a merge conflict (HTTP 409), resolve it manually with the 'Sync fork' button or a local merge."
+ echo "$response"
+ exit 1
+ }
+ echo "$response"