Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change token in a private repo #59

Open
pedro-sigma opened this issue Oct 26, 2022 · 3 comments
Open

Change token in a private repo #59

pedro-sigma opened this issue Oct 26, 2022 · 3 comments

Comments

@pedro-sigma
Copy link

I am developping a new app using Electron for an enterprise and I am having problems to update the app.

When you are generating a new token for your app, Github recommends you set an expiration date.

image

But if I set it, how can hay change my token when the app is in producction? What is the correct way to doit?

Thank you very much.

@iffy
Copy link
Owner

iffy commented Oct 26, 2022

The token is only used on your local machine to upload your app to GitHub, so regenerating and using a new token should not be a problem and will not affect the app on other people's computers.

@pedro-sigma
Copy link
Author

Bug the repo is private, so I need to send the token to download the new version, isn't it?

@iffy
Copy link
Owner

iffy commented Oct 26, 2022

You shouldn't be publishing or sending out your personal access token. It's equivalent to sharing your GitHub password.

Look through this documentation, which allows you more control over how the application calls home to GitHub: https://www.electron.build/configuration/publish#githuboptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants