mirror of
https://github.com/veggiemonk/awesome-docker.git
synced 2024-12-22 14:15:10 -05:00
Prevent running script without a token
This commit is contained in:
parent
a60278793f
commit
0c24343c82
@ -5,6 +5,10 @@ process.on('unhandledRejection', error => {
|
|||||||
console.log('unhandledRejection', error.message);
|
console.log('unhandledRejection', error.message);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!process.env.TOKEN) {
|
||||||
|
throw new Error('no github token found');
|
||||||
|
}
|
||||||
|
|
||||||
const readme = 'README.md';
|
const readme = 'README.md';
|
||||||
const API = 'https://api.github.com/';
|
const API = 'https://api.github.com/';
|
||||||
const options = {
|
const options = {
|
||||||
|
Loading…
Reference in New Issue
Block a user