Update stub implementation
This commit is contained in:
+2
-2
@@ -14449,7 +14449,7 @@ async function getManifestFromSpdxFile(content, fileName) {
|
||||
let packageVersion = pkg.packageVersion;
|
||||
let purl = pkg.purl;
|
||||
|
||||
manifest.addPackage(new Package(packageName, packageVersion, purl));
|
||||
manifest.addPackage(new _github_dependency_submission_toolkit__WEBPACK_IMPORTED_MODULE_0__.Package(packageName, packageVersion, purl));
|
||||
snapshot.addManifest(manifest);
|
||||
});
|
||||
|
||||
@@ -14459,7 +14459,7 @@ async function getManifestsFromSpdxFiles(files) {
|
||||
let manifests = [];
|
||||
files?.forEach(file => {
|
||||
fs.readFile(file, (err, content) => {
|
||||
manifests.push(parseSPDXFile(JSON.parse(content), file.name));
|
||||
manifests.push(getManifestFromSpdxFile(JSON.parse(content), file.name));
|
||||
});
|
||||
});
|
||||
return manifests;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -43,7 +43,7 @@ async function getManifestsFromSpdxFiles(files) {
|
||||
let manifests = [];
|
||||
files?.forEach(file => {
|
||||
fs.readFile(file, (err, content) => {
|
||||
manifests.push(parseSPDXFile(JSON.parse(content), file.name));
|
||||
manifests.push(getManifestFromSpdxFile(JSON.parse(content), file.name));
|
||||
});
|
||||
});
|
||||
return manifests;
|
||||
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "javascript-action",
|
||||
"name": "spdx-to-dependency-graph-action",
|
||||
"version": "1.0.0",
|
||||
"description": "JavaScript Action Template",
|
||||
"description": "SPDX to Dependency Graph Action",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/actions/javascript-action.git"
|
||||
"url": "git+https://github.com/jhutchings1/spdx-to-dependency-graph-action.git"
|
||||
},
|
||||
"keywords": [
|
||||
"GitHub",
|
||||
@@ -21,9 +21,9 @@
|
||||
"author": "",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/actions/javascript-action/issues"
|
||||
"url": "https://github.com/jhutchings1/spdx-to-dependency-graph-action/issues"
|
||||
},
|
||||
"homepage": "https://github.com/actions/javascript-action#readme",
|
||||
"homepage": "https://github.com/jhutchings1/spdx-to-dependency-graph-action#readme",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.2.5",
|
||||
"@github/dependency-submission-toolkit": "^1.2.2",
|
||||
|
||||
Reference in New Issue
Block a user