-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add setStableTag script #3078
Add setStableTag script #3078
Conversation
Automated adapter checkerioBroker.apg-info
ioBroker.followthesun
ioBroker.frigate👍 No errors found ioBroker.fuelpricemonitor
ioBroker.openknx👍 No errors found
ioBroker.tinymqttbroker
ioBroker.vis👍 No errors found
ioBroker.tedee👍 No errors found
ioBroker.vis-2-widgets-radar-trap
ioBroker.webcal👍 No errors found ioBroker.zendure-solarflow👍 No errors found
Add comment "RE-CHECK!" to start check anew |
const files = await getGithub(`https://api.github.com/repos/ioBroker/ioBroker.repositories/pulls/${prID}/files`); | ||
console.log('Files changed:'); | ||
files.forEach( f=>{console.log(` ${f}`)}); | ||
const isStable = files.includes(`${STABLE_JSON}`) |
Check notice
Code scanning / CodeQL
Semicolon insertion Note
the enclosing function
const npmRelease = npmTags.stable; | ||
//console.log( `repo: ${repoRelease} - npm: ${npmRelease}`); | ||
if (repoRelease === npmRelease) { | ||
console.log (`${adapter} ${repoRelease} correctly tagged as stable`) |
Check notice
Code scanning / CodeQL
Semicolon insertion Note
the enclosing function
console.log( `executing npm --//registry.npmjs.org/:_authToken=*** dist-tag add iobroker.${adapter}@${repoRelease} stable`); | ||
const cmd = `npm --//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN} dist-tag add iobroker.${adapter}@${repoRelease} stable`; | ||
try { | ||
const result=execSync( cmd, { encoding: 'utf-8' }); |
Check failure
Code scanning / CodeQL
Uncontrolled command line Critical
user-provided value
console.log( `executing npm --//registry.npmjs.org/:_authToken=*** dist-tag add iobroker.${adapter}@${repoRelease} stable`); | ||
const cmd = `npm --//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN} dist-tag add iobroker.${adapter}@${repoRelease} stable`; | ||
try { | ||
const result=execSync( cmd, { encoding: 'utf-8' }); |
Check warning
Code scanning / CodeQL
Indirect uncontrolled command line Medium
No description provided.