Skip to content

Commit

Permalink
always output SBOM table
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Galvão Xavier <[email protected]>
  • Loading branch information
jonasagx committed Apr 5, 2022
1 parent f6c3d0f commit be9b4be
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/github/SyftGithubAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async function executeSyft({
throw new Error("Invalid input, no image or path specified");
}

args = [...args, "-o", format];
args = [...args, "-o", format, "-o", "table"];

if (opts.uploadToDependencySnapshotAPI) {
// generate github dependency format
Expand Down
21 changes: 21 additions & 0 deletions tests/integration/__snapshots__/spdx.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,20 @@ ExternalRef: SECURITY cpe23Type cpe:2.3:a:yallist:yallist:4.0.0:*:*:*:*:*:*:*
ExternalRef: SECURITY cpe23Type cpe:2.3:a:*:yallist:4.0.0:*:*:*:*:*:*:*
ExternalRef: PACKAGE_MANAGER purl pkg:npm/[email protected]
NAME VERSION TYPE
chownr 2.0.0 npm
fs-minipass 2.1.0 npm
js-tokens 4.0.0 npm
loose-envify 1.4.0 npm
minipass 3.1.3 npm
minizlib 2.1.2 npm
mkdirp 1.0.4 npm
object-assign 4.1.1 npm
prop-types 15.7.2 npm
react 16.14.0 npm
react-is 16.13.1 npm
tar 6.1.0 npm
yallist 4.0.0 npm
"
`;

Expand Down Expand Up @@ -556,5 +570,12 @@ ExternalRef: SECURITY cpe23Type cpe:2.3:a:trim:trim:0.0.2:*:*:*:*:*:*:*
ExternalRef: SECURITY cpe23Type cpe:2.3:a:*:trim:0.0.2:*:*:*:*:*:*:*
ExternalRef: PACKAGE_MANAGER purl pkg:npm/[email protected]
NAME VERSION TYPE
loose-envify 1.4.0 npm
object-assign 4.1.1 npm
prop-types 15.7.2 npm
react 16.14.0 npm
react-is 16.13.1 npm
trim 0.0.2 npm
"
`;

0 comments on commit be9b4be

Please sign in to comment.