npm install && npm run build && npm run package
This commit is contained in:
+7
-7
@@ -106,8 +106,8 @@ function commentPr(summary, config) {
|
|||||||
}
|
}
|
||||||
exports.commentPr = commentPr;
|
exports.commentPr = commentPr;
|
||||||
function findCommentByMarker(commentBodyIncludes) {
|
function findCommentByMarker(commentBodyIncludes) {
|
||||||
var _a, e_1, _b, _c;
|
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
var _a, e_1, _b, _c;
|
||||||
const commentsIterator = octo.paginate.iterator(octo.rest.issues.listComments, {
|
const commentsIterator = octo.paginate.iterator(octo.rest.issues.listComments, {
|
||||||
owner: github.context.repo.owner,
|
owner: github.context.repo.owner,
|
||||||
repo: github.context.repo.repo,
|
repo: github.context.repo.repo,
|
||||||
@@ -180,8 +180,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
exports.getNamespace = exports.getDeniedChanges = void 0;
|
exports.getNamespace = exports.getDeniedChanges = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const purl_1 = __nccwpck_require__(3609);
|
const purl_1 = __nccwpck_require__(3609);
|
||||||
function getDeniedChanges(changes, deniedPackages = [], deniedGroups = []) {
|
function getDeniedChanges(changes_1) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, arguments, void 0, function* (changes, deniedPackages = [], deniedGroups = []) {
|
||||||
const changesDenied = [];
|
const changesDenied = [];
|
||||||
let hasDeniedPackage = false;
|
let hasDeniedPackage = false;
|
||||||
for (const change of changes) {
|
for (const change of changes) {
|
||||||
@@ -274,8 +274,8 @@ const schemas_1 = __nccwpck_require__(8774);
|
|||||||
const retryingOctokit = githubUtils.GitHub.plugin(retry.retry);
|
const retryingOctokit = githubUtils.GitHub.plugin(retry.retry);
|
||||||
const SnapshotWarningsHeader = 'x-github-dependency-graph-snapshot-warnings';
|
const SnapshotWarningsHeader = 'x-github-dependency-graph-snapshot-warnings';
|
||||||
const octo = new retryingOctokit(githubUtils.getOctokitOptions(core.getInput('repo-token', { required: true })));
|
const octo = new retryingOctokit(githubUtils.getOctokitOptions(core.getInput('repo-token', { required: true })));
|
||||||
function compare({ owner, repo, baseRef, headRef }) {
|
function compare(_a) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, arguments, void 0, function* ({ owner, repo, baseRef, headRef }) {
|
||||||
let snapshot_warnings = '';
|
let snapshot_warnings = '';
|
||||||
const changes = yield octo.paginate({
|
const changes = yield octo.paginate({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
@@ -369,8 +369,8 @@ const spdx_satisfies_1 = __importDefault(__nccwpck_require__(4424));
|
|||||||
const utils_1 = __nccwpck_require__(918);
|
const utils_1 = __nccwpck_require__(918);
|
||||||
const purl_1 = __nccwpck_require__(3609);
|
const purl_1 = __nccwpck_require__(3609);
|
||||||
function getInvalidLicenseChanges(changes, licenses) {
|
function getInvalidLicenseChanges(changes, licenses) {
|
||||||
var _a;
|
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
var _a;
|
||||||
const { allow, deny } = licenses;
|
const { allow, deny } = licenses;
|
||||||
const licenseExclusions = (_a = licenses.licenseExclusions) === null || _a === void 0 ? void 0 : _a.map((pkgUrl) => {
|
const licenseExclusions = (_a = licenses.licenseExclusions) === null || _a === void 0 ? void 0 : _a.map((pkgUrl) => {
|
||||||
return (0, purl_1.parsePURL)(pkgUrl);
|
return (0, purl_1.parsePURL)(pkgUrl);
|
||||||
@@ -824,8 +824,8 @@ function printDeniedDependencies(changes, config) {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
function createScorecardWarnings(scorecards, config) {
|
function createScorecardWarnings(scorecards, config) {
|
||||||
var _a, _b, _c;
|
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
var _a, _b, _c;
|
||||||
// Iterate through the list of scorecards, and if the score is less than the threshold, send a warning
|
// Iterate through the list of scorecards, and if the score is less than the threshold, send a warning
|
||||||
for (const dependency of scorecards.dependencies) {
|
for (const dependency of scorecards.dependencies) {
|
||||||
if (((_a = dependency.scorecard) === null || _a === void 0 ? void 0 : _a.score) &&
|
if (((_a = dependency.scorecard) === null || _a === void 0 ? void 0 : _a.score) &&
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user