n8n-nodes-github-copilot 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,22 +8,22 @@ class GitHubApi {
|
|
|
8
8
|
this.documentationUrl = 'https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token';
|
|
9
9
|
this.properties = [
|
|
10
10
|
{
|
|
11
|
-
displayName: 'GitHub Token',
|
|
12
|
-
name: '
|
|
11
|
+
displayName: 'GitHub OAuth Token',
|
|
12
|
+
name: 'oauthToken',
|
|
13
13
|
type: 'string',
|
|
14
14
|
typeOptions: {
|
|
15
15
|
password: true,
|
|
16
16
|
},
|
|
17
17
|
default: '',
|
|
18
18
|
required: true,
|
|
19
|
-
description: 'GitHub
|
|
19
|
+
description: 'GitHub OAuth Token (gho_...) for GitHub Copilot CLI. Generate via: gh auth login --web. Required for Copilot CLI access.',
|
|
20
20
|
},
|
|
21
21
|
];
|
|
22
22
|
this.authenticate = {
|
|
23
23
|
type: 'generic',
|
|
24
24
|
properties: {
|
|
25
25
|
headers: {
|
|
26
|
-
Authorization: '=Bearer {{$credentials.
|
|
26
|
+
Authorization: '=Bearer {{$credentials.oauthToken}}',
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
};
|
|
@@ -178,9 +178,8 @@ class GitHubCopilot {
|
|
|
178
178
|
const { stdout, stderr } = await execAsync(command, {
|
|
179
179
|
env: {
|
|
180
180
|
...process.env,
|
|
181
|
-
|
|
181
|
+
GH_TOKEN: credentials.oauthToken,
|
|
182
182
|
HOME: '/opt/n8n-source/packages/cli/bin',
|
|
183
|
-
GH_TOKEN: credentials.accessToken,
|
|
184
183
|
},
|
|
185
184
|
timeout: 30000,
|
|
186
185
|
maxBuffer: 1024 * 1024,
|
package/package.json
CHANGED