mirror of
https://github.com/veggiemonk/awesome-docker.git
synced 2025-04-20 16:08:03 +02:00
Prevent running script without a token
This commit is contained in:
parent
285f154245
commit
cf1fa8576f
1 changed files with 4 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue