INNER CODE UNIT · JavaScript
generateAnalyzeArgs
Legit-Labs/legitify · index.js:153
function generateAnalyzeArgs(repo, owner) {
let args = [];
const scorecard = process.env["scorecard"];
if (scorecard === "yes" || scorecard === "verbose") {
args.push("--scorecard");
args.push(scorecard);
}
if (process.env["analyze_self_only"] === "true") {
args.push("--repo");
args.push(repo);
} else if (process.env["repositories"] !== "") {
args.push("--repo");
args.push(process.env["repositories"]);
} else {
args.push("--org");
args.push(owner);