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

Don't build when CI run is a pull request #1354

Closed
sindresorhus opened this issue Mar 12, 2017 · 7 comments · May be fixed by qcif/data-curator#563
Closed

Don't build when CI run is a pull request #1354

sindresorhus opened this issue Mar 12, 2017 · 7 comments · May be fixed by qcif/data-curator#563
Labels

Comments

@sindresorhus
Copy link

sindresorhus commented Mar 12, 2017

  • Version: 15.3.0

It would be nice if electron-builder didn't try to build when the CI run is a pull request. The required codesign environment variables are not available on untrusted builds on Travis:

Encrypted variables are not available to untrusted builds such as pull requests coming from another repository.

I know I could turn off building on pull requests in the Travis repo settings, but I still want to do linting on pull requests.

Here's how it's currently failing: https://travis-ci.org/sindresorhus/caprine/jobs/210320431

@develar
Copy link
Member

develar commented Mar 12, 2017

Fixed in 15.4.0

Code signing skipped if build is a part of a PR. In the same way as deployment.

@develar develar reopened this Mar 12, 2017
@develar
Copy link
Member

develar commented Mar 12, 2017

Reopened — MAS build should be skipped. MAS App will be built, but pkg not created.

@develar develar closed this as completed Mar 13, 2017
@djalmaaraujo
Copy link

djalmaaraujo commented Apr 19, 2017

@develar I don't know why this was added, looks incorrect to me, what if I want to have artifacts signed in my pull-requests for QA?

@sindresorhus
Copy link
Author

@djalmaaraujo The issue description clearly describes why it was added. If you have other needs, open a separate issue and @develar might add an opt-in, but it's not a good default.

@djalmaaraujo
Copy link

@sindresorhus I understand the problem, but in circleci/Appveyor for example you don't have this issue. It would be ideal at least, to have a config option for that.

@djalmaaraujo
Copy link

Maybe I can do a "hack", setting all these 3 vars:

TRAVIS_PULL_REQUEST CI_PULL_REQUEST CI_PULL_REQUESTS to false on the CI. But that's not good. Also, there's a TRAVIS custom variable inside of electron-builder, which doesn't make sense to me.

Just saying... :)

@develar
Copy link
Member

develar commented Apr 20, 2017

It is not issue, it is security feature. On CircleCI you also can disable secret passing. As suggested above, please file issue to add option.

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

Successfully merging a pull request may close this issue.

3 participants