forked from 2600hz/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Primitive Erlang Security Tool ('PEST') to Makefile (2600hz#6334)
From the project's description: "Do a basic scan of Erlang source code and report any function calls that may cause Erlang source code to be insecure." As PEST reports lots of "maybe" issues, this is more intended for specific PEST-related coding. Mostly validating input before calling os:cmd for instance. Two targets: - `make pest`: will run PEST on changed Erlang files (if any) - `make pest-all`: will run PEST on all deps, core, and app BEAM files
- Loading branch information
1 parent
dca82d7
commit 0b1bc02
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,3 +93,4 @@ core/kazoo_proper/priv/mp3.mp3 | |
/doc/engineering/.org/proper.tex | ||
/todo.org | ||
*.tar | ||
/make/pest-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
PEST_SHA = 90609d16a45c558beeb67c16cc68bf630843c2e1 | ||
PEST = $(ROOT)/make/pest-$(PEST_SHA)/pest.erl | ||
|
||
# See https://github.com/okeuday/pest#usage | ||
|
||
.PHONY: pest pest-all | ||
|
||
$(PEST): | ||
wget -qO - 'https://codeload.github.com/okeuday/pest/tar.gz/$(PEST_SHA)' | tar -vxz -C $(ROOT)/make/ | ||
chmod 755 $(PEST) | ||
|
||
ifeq (,$(CHANGED_ERL)) | ||
pest: | ||
@echo No Erlang files changed | ||
else | ||
pest: $(PEST) | ||
$(PEST) -e $(CHANGED_ERL) | ||
endif | ||
|
||
pest-all: $(PEST) | ||
$(PEST) -v -b deps core applications |