Skip to content

Commit

Permalink
Add detection for installers
Browse files Browse the repository at this point in the history
  • Loading branch information
antfie committed Jul 7, 2023
1 parent 232ac68 commit 84d6bd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions checks/unwanted_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func detectUnwantedFiles(r *report.Report) {
processUnwantedFiles(r, []string{"*.7z"}, "7-zip file", []string{"Veracode does not support 7-zip. Consider using zip files instead."})
processUnwantedFiles(r, []string{"*.coffee"}, "CoffeeScript file", []string{"CoffeeScript source code files will not be scanned because Veracode does not support CoffeeScript.", "Review the JavaScript/TypeScript packaging instructions: https://docs.veracode.com/r/compilation_jscript."})
processUnwantedFiles(r, []string{"*.sh", "*.ps", "*.ps1", "*.bat"}, "batch/shell script", []string{"Do not upload batch/shell scripts."})
processUnwantedFiles(r, []string{"setup.exe", "*.msi"}, "installer", []string{"Do not upload installers or setup programs."})
}

func processUnwantedFiles(r *report.Report, filePatterns []string, fileType string, recommendations []string) {
Expand Down

0 comments on commit 84d6bd0

Please sign in to comment.