Commit 02e7782
Add diagnostic logging for debugger tunnel 403
Instruments the Actions job debugger flow with non-sensitive diagnostic
logging so we can investigate devtunnel 403 upgrade failures that only
reproduce on some users' machines.
Logged (never the full token):
- Prefix (first 4 chars) and length of the access token used, plus the
session's granted scopes and account label. Distinguishes ghu_ (VS Code
GitHub App) from gho_ (OAuth app) / ghp_ (PAT); Dev Tunnels only
trusts ghu_.
- A silent probe for a scope-less ("App-backed") session so we can tell
whether the requested ["repo","workflow"] scopes forced VS Code onto
the OAuth path.
- Top-level field names of the /actions/jobs/{job_id}/debugger response,
in case a separate tunnel access token is returned.
- On WS upgrade failure, the tunnel's HTTP status, statusText, a
whitelist of diagnostic headers, and a truncated response body via
the ws 'unexpected-response' event.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8d961c5 commit 02e7782
2 files changed
Lines changed: 89 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
72 | 102 | | |
73 | 103 | | |
74 | 104 | | |
| |||
80 | 110 | | |
81 | 111 | | |
82 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
83 | 120 | | |
84 | 121 | | |
85 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
52 | 103 | | |
53 | 104 | | |
54 | 105 | | |
| |||
99 | 150 | | |
100 | 151 | | |
101 | 152 | | |
| 153 | + | |
102 | 154 | | |
103 | 155 | | |
104 | 156 | | |
| |||
0 commit comments