File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -32,3 +32,4 @@ coverage/
32
32
*.pb.*.go
33
33
*.bindata.go
34
34
*.spec.ts
35
+ modernizr-custom.js
Original file line number Diff line number Diff line change @@ -16,10 +16,19 @@ revendor: ## revendor dependencies in protovendor/ and update .bldr.toml with de
16
16
@scripts/revendor.sh
17
17
18
18
semgrep : # # runs differential semgrep, checking only changes in the current PR, just as is done in Buildkite
19
- @if [[ -z " ${SEMGREP_TOKEN} " || -z " ${SEMGREP_ID} " ]]; then echo $(SEMGREP_MSG ) ; else docker run -it --rm --init $(DOCKER_PARAMS ) $(SEMGREP_REPO ) $(SEMGREP_CONTAINER ) python $(SEMGREP_COMMON_PARAMS ) --baseline-ref $(shell git merge-base master head ) ; fi
19
+ @if [[ -z " ${SEMGREP_TOKEN} " || -z " ${SEMGREP_ID} " ]]; then echo $(SEMGREP_MSG ) ; else docker run -it --rm --init $(DOCKER_PARAMS ) $(SEMGREP_REPO ) $(SEMGREP_CONTAINER ) python $(SEMGREP_COMMON_PARAMS ) --baseline-ref $(shell git merge-base master HEAD ) ; fi
20
20
21
21
semgrep-all : # # runs full semgrep but filters out the insignificant issues reported by semgrep-legacy; this is what runs nightly in Buildkite
22
22
@if [[ -z " ${SEMGREP_TOKEN} " || -z " ${SEMGREP_ID} " ]]; then echo $(SEMGREP_MSG ) ; else docker run -it --rm --init $(DOCKER_PARAMS ) $(SEMGREP_NIGHTLY_REPO ) $(SEMGREP_CONTAINER ) python $(SEMGREP_COMMON_PARAMS ) ; fi
23
23
24
24
semgrep-legacy : # # runs full semgrep including findings for existing issues that are not significant
25
25
@if [[ -z " ${SEMGREP_TOKEN} " || -z " ${SEMGREP_ID} " ]]; then echo $(SEMGREP_MSG ) ; else docker run -it --rm --init $(DOCKER_PARAMS ) $(SEMGREP_REPO ) $(SEMGREP_CONTAINER ) python $(SEMGREP_COMMON_PARAMS ) ; fi
26
+
27
+
28
+ # For exploring new rulesets before integrating with CI.
29
+ # For convenience, this uses all the ignores from Makefile.common_go and automate-ui/Makefile.
30
+ # Ruleset choices come from https://semgrep.dev/explore.
31
+ # Example: `make semgrep-test/rc2-bug-scan`
32
+ SEMGREP_IGNORE := --exclude third_party --exclude *_test.go --exclude *.pb.go --exclude *.pb.*.go --exclude *.bindata.go --exclude *.spec.ts --exclude coverage --exclude modernizr-custom.js
33
+ semgrep-test/% :
34
+ semgrep --config " p/$( @F) " $(SEMGREP_IGNORE )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ NG_CMD := npm run ng --
11
11
REPOROOT =../..
12
12
13
13
# Semgrep by default respects .gitignore; these are additive:
14
- SEMGREP_IGNORE := --exclude *.spec.ts --exclude coverage
14
+ SEMGREP_IGNORE := --exclude *.spec.ts --exclude coverage --exclude modernizr-custom.js
15
15
SEMGREP_CONFIG := https://semgrep.dev/p/r2c-ci
16
16
17
17
You can’t perform that action at this time.
0 commit comments