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