Skip to content

Commit

Permalink
chore(deps): update Syft to v0.98.0 (#431)
Browse files Browse the repository at this point in the history
* chore(deps): update Syft to v0.98.0

Signed-off-by: GitHub <noreply@github.com>

* chore: pretty print output for snapshot tests

Syft no longer defaults to pretty-printed JSON. This change made snapshot diffs
unreadable. Therefore, set integration tests to configure syft to pretty print
SBOMs.

Signed-off-by: Will Murphy <will.murphy@anchore.com>

---------

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
Co-authored-by: kzantow <kzantow@users.noreply.github.com>
Co-authored-by: Will Murphy <will.murphy@anchore.com>
  • Loading branch information
3 people authored Dec 4, 2023
1 parent a4126e6 commit 5ecf649
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/attachReleaseAssets/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/downloadSyft/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/runSyftAction/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/SyftVersion.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = "v0.97.1";
export const VERSION = "v0.98.0";
3 changes: 3 additions & 0 deletions tests/integration/formatExports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as github from "@actions/github";
import * as fs from "fs";
import * as client from "../../src/github/GithubClient";
import { runSyftAction } from "../../src/github/SyftGithubAction";
import path from "path";

jest.setTimeout(30000);
Date.now = jest.fn(() => 1482363367071);
Expand Down Expand Up @@ -65,6 +66,8 @@ const testSource = async (source: string, format = "spdx"): Promise<string> => {
// SPDX-json is not consistently sorted,
// so we sort text SPDX output for snapshots
return format;
case "config":
return path.join("tests","integration", "syft_config.yaml");
}
return "";
});
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/syft_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
format:
pretty: true

0 comments on commit 5ecf649

Please sign in to comment.