Personal Telegram developer console for GitHub
test: reproduce add-file callback routing failure
davoodmehraban89 committed
Oct 7, 2026 at 01:28 UTC
a7985e666a782e9c2923a44d0d23af439258416d
1 file changed
+8
test/phase2-controller.test.js
+8
@@ -28,3 +28,11 @@ test('removing a change-set file uses opaque ref and durable remove', async()=>{
28
const v=await c.resolveCallback('wremove:R000000001',{ownerId:'42'}).execute();
29
assert.equal(removed,'src/a.js'); assert.match(v.text,/README\.md/);
30
});
31
+
32
+
33
+test('add-file callback actions are declared READ in the GitHub manifest', async()=>{
34
+ const { githubPluginManifest } = await import('../src/plugins/github/manifest.js');
35
+ for (const action of ['github.workspace.file.pick','github.workspace.file.add','github.workspace.file.remove']) {
36
+ assert.equal(githubPluginManifest.actions[action]?.risk, 'READ', action + ' must be routed as owner-only READ');
37
+ }
38
+});