Skip to content

Commit

Permalink
feat: ensure target repo is private
Browse files Browse the repository at this point in the history
  • Loading branch information
simoneb committed Dec 29, 2020
1 parent ad53691 commit da76d00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/middleware/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ async function setup(yargs) {
)
}

if (!repo.private) {
throw new Error(`Repository ${repo.html_url} must be private`)
}

await setupRepo(repo, token, yargs)

return { repo, token, user }
Expand Down

0 comments on commit da76d00

Please sign in to comment.