Update dependency-submission-toolkit
This commit is contained in:
Binary file not shown.
Vendored
+2
-68
@@ -3792,7 +3792,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.submitSnapshot = exports.Snapshot = exports.jobFromContext = void 0;
|
||||
const core = __importStar(__nccwpck_require2_(2186));
|
||||
const github = __importStar(__nccwpck_require2_(5438));
|
||||
const rest_1 = __nccwpck_require2_(5375);
|
||||
const request_error_1 = __nccwpck_require2_(537);
|
||||
/**
|
||||
* jobFromContext creates a job from a @actions/github Context
|
||||
@@ -3860,9 +3859,7 @@ function submitSnapshot(snapshot, context = github.context) {
|
||||
core.notice(snapshot.prettyJSON());
|
||||
const repo = context.repo;
|
||||
const githubToken = core.getInput('token') || (yield core.getIDToken());
|
||||
const octokit = new rest_1.Octokit({
|
||||
auth: githubToken
|
||||
});
|
||||
const octokit = github.getOctokit(githubToken);
|
||||
try {
|
||||
const response = yield octokit.request('POST /repos/{owner}/{repo}/dependency-graph/snapshots', {
|
||||
headers: {
|
||||
@@ -7460,44 +7457,6 @@ exports.paginatingEndpoints = paginatingEndpoints;
|
||||
//# sourceMappingURL=index.js.map
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8883:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
|
||||
const VERSION = "1.0.4";
|
||||
|
||||
/**
|
||||
* @param octokit Octokit instance
|
||||
* @param options Options passed to Octokit constructor
|
||||
*/
|
||||
|
||||
function requestLog(octokit) {
|
||||
octokit.hook.wrap("request", (request, options) => {
|
||||
octokit.log.debug("request", options);
|
||||
const start = Date.now();
|
||||
const requestOptions = octokit.request.endpoint.parse(options);
|
||||
const path = requestOptions.url.replace(options.baseUrl, "");
|
||||
return request(options).then(response => {
|
||||
octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);
|
||||
return response;
|
||||
}).catch(error => {
|
||||
octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);
|
||||
throw error;
|
||||
});
|
||||
});
|
||||
}
|
||||
requestLog.VERSION = VERSION;
|
||||
|
||||
exports.requestLog = requestLog;
|
||||
//# sourceMappingURL=index.js.map
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3044:
|
||||
@@ -8798,31 +8757,6 @@ exports.request = request;
|
||||
//# sourceMappingURL=index.js.map
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5375:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require2_) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
|
||||
var core = __nccwpck_require2_(6762);
|
||||
var pluginRequestLog = __nccwpck_require2_(8883);
|
||||
var pluginPaginateRest = __nccwpck_require2_(4193);
|
||||
var pluginRestEndpointMethods = __nccwpck_require2_(3044);
|
||||
|
||||
const VERSION = "18.12.0";
|
||||
|
||||
const Octokit = core.Octokit.plugin(pluginRequestLog.requestLog, pluginRestEndpointMethods.legacyRestEndpointMethods, pluginPaginateRest.paginateRest).defaults({
|
||||
userAgent: `octokit-rest.js/${VERSION}`
|
||||
});
|
||||
|
||||
exports.Octokit = Octokit;
|
||||
//# sourceMappingURL=index.js.map
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3682:
|
||||
@@ -15713,7 +15647,7 @@ module.exports = require("zlib");
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = {"i8":"1.1.0"};
|
||||
module.exports = {"i8":"2.0.0"};
|
||||
|
||||
/***/ })
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Generated
+7
-7
@@ -10,7 +10,7 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.0",
|
||||
"@github/dependency-submission-toolkit": "^1.2.3",
|
||||
"@github/dependency-submission-toolkit": "^1.2.6",
|
||||
"commander": "^9.4.0",
|
||||
"packageurl-js": "^0.0.7"
|
||||
},
|
||||
@@ -659,9 +659,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@github/dependency-submission-toolkit": {
|
||||
"version": "1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@github/dependency-submission-toolkit/-/dependency-submission-toolkit-1.2.3.tgz",
|
||||
"integrity": "sha512-q83TVTZZUW8wv7JfDovLdxWdbsxT2+75fseHXR6geM85E9XUjS7iOFodVolKbVat9fJcEVfMtZJdMmeIoUqjqw==",
|
||||
"version": "1.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@github/dependency-submission-toolkit/-/dependency-submission-toolkit-1.2.6.tgz",
|
||||
"integrity": "sha512-nsnp0rri7MVLm+740GsM7Gl8yrpCzprUUEjCE7Prc1CyiajwtwQsAJwgc+uU0zJU9986cbrS+B+S/O/2KznRpw==",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.6.0",
|
||||
"@actions/exec": "^1.1.1",
|
||||
@@ -6899,9 +6899,9 @@
|
||||
}
|
||||
},
|
||||
"@github/dependency-submission-toolkit": {
|
||||
"version": "1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@github/dependency-submission-toolkit/-/dependency-submission-toolkit-1.2.3.tgz",
|
||||
"integrity": "sha512-q83TVTZZUW8wv7JfDovLdxWdbsxT2+75fseHXR6geM85E9XUjS7iOFodVolKbVat9fJcEVfMtZJdMmeIoUqjqw==",
|
||||
"version": "1.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@github/dependency-submission-toolkit/-/dependency-submission-toolkit-1.2.6.tgz",
|
||||
"integrity": "sha512-nsnp0rri7MVLm+740GsM7Gl8yrpCzprUUEjCE7Prc1CyiajwtwQsAJwgc+uU0zJU9986cbrS+B+S/O/2KznRpw==",
|
||||
"requires": {
|
||||
"@actions/core": "^1.6.0",
|
||||
"@actions/exec": "^1.1.1",
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
"homepage": "https://github.com/advanced-security/maven-dependency-tree-action#readme",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.0",
|
||||
"@github/dependency-submission-toolkit": "^1.2.3",
|
||||
"@github/dependency-submission-toolkit": "^1.2.6",
|
||||
"commander": "^9.4.0",
|
||||
"packageurl-js": "^0.0.7"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user