Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Remove the issue-permission probe: the token can create issues in every form tested

LNPANDYe1f6dea9963c
diff --git a/.github/workflows/issue-probe.yml b/.github/workflows/issue-probe.yml
deleted file mode 100644
index 4338f36e..00000000
--- a/.github/workflows/issue-probe.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-name: Issue permission probe
-on:
- workflow_dispatch:
-permissions:
- contents: read
- issues: write
-jobs:
- probe:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - name: Add an upstream remote, as the real workflows do
- run: git remote add upstream https://github.com/seedds/nxnative.git && git remote -v
-
- - name: Who am I and what can I do
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- echo "--- gh auth status ---"
- gh auth status || true
- echo "--- token scopes via REST headers ---"
- curl -sS -D - -o /dev/null -H "Authorization: token $GH_TOKEN" \
- https://api.github.com/repos/${{ github.repository }} | grep -iE "^(x-oauth-scopes|x-accepted)" || true
- echo "--- can I read issues? ---"
- gh api repos/${{ github.repository }}/issues?per_page=1 --jq 'length' || echo "read failed"
- echo "--- create an issue ---"
- gh issue create -R ${{ github.repository }} --title "probe: can the workflow token open issues" --body "Temporary probe. Delete." \
- && echo "CREATE OK" || echo "CREATE FAILED"
- echo "--- and with -R only, no checkout needed ---"
- gh issue create -R ${{ github.repository }} --title "probe 2: -R form" --body "Temporary probe. Delete." \
- && echo "CREATE2 OK" || echo "CREATE2 FAILED"