mirror of
https://github.com/ossf/scorecard.git
synced 2024-11-05 05:17:00 +03:00
✨ Check for Mach-O binaries in Binary Artifacts (#2000)
This commit is contained in:
parent
e42af75660
commit
6a032a3019
@ -65,6 +65,7 @@ var checkBinaryFileContent fileparser.DoWhileTrueOnFileContent = func(path strin
|
||||
"elf": true,
|
||||
"o": true,
|
||||
"so": true,
|
||||
"macho": true,
|
||||
"iso": true,
|
||||
"class": true,
|
||||
"jar": true,
|
||||
|
@ -41,6 +41,14 @@ func TestBinaryArtifacts(t *testing.T) {
|
||||
},
|
||||
expect: 1,
|
||||
},
|
||||
{
|
||||
name: "Mach-O ARM64 executable",
|
||||
err: nil,
|
||||
files: []string{
|
||||
"../testdata/binaryartifacts/executables/darwin-arm64-bt",
|
||||
},
|
||||
expect: 1,
|
||||
},
|
||||
{
|
||||
name: "non binary file",
|
||||
err: nil,
|
||||
|
BIN
checks/testdata/binaryartifacts/executables/darwin-arm64-bt
vendored
Normal file
BIN
checks/testdata/binaryartifacts/executables/darwin-arm64-bt
vendored
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user