diff --git a/lib/prepare_security.js b/lib/prepare_security.js index 608a797c..bd258dbc 100644 --- a/lib/prepare_security.js +++ b/lib/prepare_security.js @@ -104,9 +104,12 @@ class PrepareSecurityRelease { checkRemote(cli) { const remote = runSync('git', ['ls-remote', '--get-url', 'origin']).trim(); const { owner, repo } = this.repository; - const securityReleaseOrigin = `https://github.com/${owner}/${repo}.git`; + const securityReleaseOrigin = [ + `https://github.com/${owner}/${repo}.git`, + `git@github.com:${owner}/${repo}.git` + ]; - if (remote !== securityReleaseOrigin) { + if (!securityReleaseOrigin.includes(remote)) { cli.error(`Wrong repository! It should be ${securityReleaseOrigin}`); process.exit(1); }