Skip to content

Commit

Permalink
🐛 Add wasm files as binary artifacts (ossf#2548)
Browse files Browse the repository at this point in the history
* fix: Add wasm files to binary check

Signed-off-by: Gabriela Gutierrez <[email protected]>

* test: Add wasm to binary check

Signed-off-by: Gabriela Gutierrez <[email protected]>

* chore: Automatic projects update

Signed-off-by: Gabriela Gutierrez <[email protected]>

* Revert "chore: Automatic projects update"

This reverts commit 99fb2af.

Signed-off-by: Gabriela Gutierrez <[email protected]>

Signed-off-by: Gabriela Gutierrez <[email protected]>
  • Loading branch information
gabibguti authored and raghavkaul committed Mar 6, 2023
1 parent 04e422a commit 7784424
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions checks/raw/binary_artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ var checkBinaryFileContent fileparser.DoWhileTrueOnFileContent = func(path strin
"pyo": true,
"par": true,
"rpm": true,
"wasm": true,
"whl": true,
}
var t types.Type
Expand Down
9 changes: 9 additions & 0 deletions checks/raw/binary_artifact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ func TestBinaryArtifacts(t *testing.T) {
getFileContentCount int
expect int
}{
{
name: "Wasm file",
err: nil,
files: [][]string{
{"../testdata/binaryartifacts/wasms/simple.wasm"},
},
getFileContentCount: 1,
expect: 1,
},
{
name: "Jar file",
err: nil,
Expand Down
Binary file added checks/testdata/binaryartifacts/wasms/simple.wasm
Binary file not shown.

0 comments on commit 7784424

Please sign in to comment.