Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 1ecd53f

Browse files
Merge pull request #828 from github-for-unity/fixes/reduce-auth-scope
Reducing the authentication scope requested by GitHub for Unity
2 parents f5c3e47 + c75c9a7 commit 1ecd53f

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

docs/using/authenticating-to-github.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ The scopes for the personal access token are: `user`, `repo`.
3030
- *user* scope: Grants access to the user profile data. We currently use this to display your avatar and check whether your plans lets you publish private repositories.
3131
- *repo* scope: Grants read/write access to code, commit statuses, invitations, collaborators, adding team memberships, and deployment statuses for public and private repositories and organizations. This is needed for all git network operations (push, pull, fetch), and for getting information about the repository you're currently working on.
3232

33+
<sub>***Note:*** *Some older versions of the plugin ask for `gist` and `write:public_key`.*</sub>
34+
3335
For more information on creating personal access tokens, see "[Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line).
3436

3537
For more information on authenticating with SAML single sign-on, see "[About authentication with SAML single sign-on](https://help.github.com/articles/about-authentication-with-saml-single-sign-on)."

octorun/src/authentication.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var octokitWrapper = require("./octokit");
44

55
var twoFactorRegex = new RegExp("must specify two-factor authentication otp code", "gi");
66

7-
var scopes = ["user", "repo", "gist", "write:public_key"];
7+
var scopes = ["user", "repo"];
88

99
var handleAuthentication = function (username, password, onSuccess, onFailure, twoFactor) {
1010
if (!config.clientId || !config.clientSecret) {

octorun/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b4b80eb4ac
1+
7f160da1

src/GitHub.Api/Installer/OctorunInstaller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class OctorunInstallDetails
8585
public const string DefaultZipMd5Url = "http://github-vs.s3.amazonaws.com/unity/octorun/octorun.zip.md5";
8686
public const string DefaultZipUrl = "http://github-vs.s3.amazonaws.com/unity/octorun/octorun.zip";
8787

88-
public const string PackageVersion = "b4b80eb4ac";
88+
public const string PackageVersion = "7f160da1";
8989
private const string PackageName = "octorun";
9090
private const string zipFile = "octorun.zip";
9191

src/GitHub.Api/Resources/octorun.zip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:802c9a15337ce6692f8c4c215a131b755358972cb3a7e76139193855770ab1c8
3-
size 214371
2+
oid sha256:60478c33970a7a8d952777729450a42fa02bf7832514b7d44ec116aa09cb7814
3+
size 219592
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0a49f36d2e8df01456f832c6968a6782
1+
3d4bea9ae4ca3c4497d6b349166a1e34

0 commit comments

Comments
 (0)