Merge pull request #492 from arnottcr/oauth

context: use the real oauth credentials
This commit is contained in:
Mislav Marohnić 2020-02-18 19:36:21 +01:00 committed by GitHub
commit 02b4ab5be3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 7 deletions

View file

@ -25,8 +25,6 @@ jobs:
version: latest
args: release --release-notes=CHANGELOG.md
env:
GH_OAUTH_CLIENT_ID: 178c6fc778ccc68e1d6a
GH_OAUTH_CLIENT_SECRET: ${{secrets.OAUTH_CLIENT_SECRET}}
GITHUB_TOKEN: ${{secrets.UPLOAD_GITHUB_TOKEN}}
msi:
needs: goreleaser

View file

@ -13,8 +13,6 @@ builds:
main: ./cmd/gh
ldflags:
- -s -w -X github.com/cli/cli/command.Version={{.Version}} -X github.com/cli/cli/command.BuildDate={{time "2006-01-02"}}
- -X github.com/cli/cli/context.oauthClientID={{.Env.GH_OAUTH_CLIENT_ID}}
- -X github.com/cli/cli/context.oauthClientSecret={{.Env.GH_OAUTH_CLIENT_SECRET}}
- -X main.updaterEnabled=cli/cli
id: macos
goos: [darwin]

View file

@ -18,10 +18,10 @@ const (
)
var (
// The GitHub app that is meant for development
oauthClientID = "4d747ba5675d5d66553f"
// The "GitHub CLI" OAuth app
oauthClientID = "178c6fc778ccc68e1d6a"
// This value is safe to be embedded in version control
oauthClientSecret = "d4fee7b3f9c2ef4284a5ca7be0ee200cf15b6f8d"
oauthClientSecret = "34ddeff2b558a23d38fba8a6de74f086ede1cc0b"
)
// TODO: have a conversation about whether this belongs in the "context" package