Update stub implementation

This commit is contained in:
Justin Hutchings
2022-10-04 09:19:29 -07:00
parent a8ce523ef0
commit d6bc80051e
4 changed files with 9 additions and 9 deletions
Generated Vendored
+2 -2
View File
@@ -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;
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -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
View File
@@ -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",