Skip to content

Commit

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

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Add wasm to binary check

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* chore: Automatic projects update

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* Revert "chore: Automatic projects update"

This reverts commit 99fb2af.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
  • Loading branch information
gabibguti authored Jan 6, 2023
1 parent a2bc29a commit be695d1
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 be695d1

Please sign in to comment.