Skip to content

Commit

Permalink
Bump Syft to 0.32.0 (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzantow authored Dec 13, 2021
1 parent b82b731 commit 4da47ad
Show file tree
Hide file tree
Showing 7 changed files with 450 additions and 447 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.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"package:release-action": "ncc build src/downloadSyft.ts -o dist/downloadSyft",
"post-package:fix-line-endings": "eolConverter 'dist/**/*.js'",
"test": "jest --collect-coverage",
"test:update-snapshots": "jest --updateSnapshot",
"all": "npm run build && npm run format && npm run lint && npm run package && npm test",
"prepare": "husky install",
"prettier": "prettier -w src",
Expand Down
2 changes: 1 addition & 1 deletion src/github/SyftGithubAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { SyftOptions } from "../Syft";
import { dashWrap, debugLog, getClient } from "./GithubClient";

export const SYFT_BINARY_NAME = "syft";
export const SYFT_VERSION = "v0.26.0";
export const SYFT_VERSION = "v0.32.0";

const PRIOR_ARTIFACT_ENV_VAR = "ANCHORE_SBOM_ACTION_PRIOR_ARTIFACT";

Expand Down
880 changes: 441 additions & 439 deletions tests/integration/__snapshots__/snapshot.test.ts.snap

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions tests/integration/snapshot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const testSource = async (source: string): Promise<string> => {
let spdx = "";
const artifacts: client.Artifact[] = [];

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
(github as unknown).context = {
eventName: "release",
Expand Down Expand Up @@ -76,12 +77,11 @@ const testSource = async (source: string): Promise<string> => {
spyGetClient.mockRestore();
}

// FIXME these tests are already flaky because SPDX format is not sorted currently
// Remove non-static data:
return spdx
.replace(/[Cc]reated["]?[:][^\n]+/g, "")
.split("\n")
.sort()
.join("\n");
.replace(/Creator[:][^\n]+/g, "")
.replace(/DocumentNamespace[:][^\n]+/g, "");
};

describe("SPDX", () => {
Expand Down

0 comments on commit 4da47ad

Please sign in to comment.