INNER CODE UNIT · JavaScript
executeLegitify
Legit-Labs/legitify · index.js:53
async function executeLegitify(token, args, uploadCodeScanning) {
let myOutput = "";
let myError = "";
const options = {};
options.listeners = {
stderr: (data) => {
myError += data.toString();
},
};
options.env = { SCM_TOKEN: token };
options.silent = true
const isPrivate = await isPrivateRepo(token)
core.setOutput("is_private", isPrivate)
if (!isPrivate) {
console.log("running in a public repository - only uploading results to Code Scanning (Security Center)")
}