Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test semgrep #307

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
p/comment
p/cwe-top-25
p/default
p/gitlab
p/gitleaks
p/golang
p/gosec
Expand Down
21 changes: 21 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,25 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
endif
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)

semgrep:
docker run --rm -v ${PWD}:/app:ro -w /app semgrep/semgrep semgrep scan --error --metrics=off \
--config=p/command-injection \
--config=p/comment \
--config=p/cwe-top-25 \
--config=p/default \
--config=p/gitlab \
--config=p/gitleaks \
--config=p/golang \
--config=p/gosec \
--config=p/insecure-transport \
--config=p/owasp-top-ten \
--config=p/r2c-best-practices \
--config=p/r2c-bug-scan \
--config=p/r2c-security-audit \
--config=p/secrets \
--config=p/security-audit \
--config=p/sql-injection \
--config=p/xss \
.

.PHONY: golangci-lint build test testacc fmt test-compile website website-test
Loading