1
0
Fork 0
mirror of https://github.com/veggiemonk/awesome-docker.git synced 2025-04-19 15:38:04 +02:00

Prevent running script without a token

This commit is contained in:
Julien Bisconti 2018-05-29 00:07:41 +02:00 committed by Andreas Gebhardt
parent a60278793f
commit 0c24343c82

View file

@ -5,6 +5,10 @@ process.on('unhandledRejection', error => {
console.log('unhandledRejection', error.message);
});
if (!process.env.TOKEN) {
throw new Error('no github token found');
}
const readme = 'README.md';
const API = 'https://api.github.com/';
const options = {