Skip to content

Commit

Permalink
No merge plz - tweaking semgrep output
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop committed Jan 19, 2024
1 parent 80b03ed commit 67aedfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ jobs:
command: |
fromtag=$(docker images |grep securedrop-test-focal-py3 |head -n1 |awk '{print $2}')
DOCKER_BUILD_ARGUMENTS="--cache-from securedrop-test-focal-py3:${fromtag:-latest}" securedrop/bin/dev-shell \
bash -c "pip3 install -U -q --upgrade pip && pip3 install -U -q --upgrade semgrep && make -C .. semgrep"
bash -c "pip3 install -U -q --upgrade pip && pip3 install -U -q semgrep==1.56.0 && make -C .. semgrep"
staging-test-with-rebase:
machine:
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ safety: ## Run `safety check` to check python dependencies for vulnerabilities.
.PHONY: semgrep
semgrep:
@command -v semgrep || (echo "Please run 'pip install -U semgrep'."; exit 1)
@echo "Checking for tty"
@tty
@echo "███ Running semgrep on securedrop/..."
@semgrep --exclude "securedrop/tests/" --error --strict --metrics off --max-chars-per-line 200 --verbose --config "p/r2c-security-audit" securedrop
@semgrep --exclude "securedrop/tests/" --error --strict --metrics off --max-chars-per-line=200 --verbose --config "p/r2c-security-audit" securedrop
@echo


Expand Down

0 comments on commit 67aedfe

Please sign in to comment.