Skip to content

Commit

Permalink
semgrep config and issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Laddusaw committed Sep 23, 2024
1 parent d7c5bae commit 85d05a4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ jobs:
- ruby/rubocop-check:
format: progress
label: Inspecting with Rubocop
semgrep:
docker:
- image: returntocorp/semgrep
steps:
- checkout
- run:
name: Check code against community-provided and custom semgrep rules
command: semgrep ci --config auto
test:
parameters:
ruby-version:
Expand Down Expand Up @@ -75,6 +83,7 @@ workflows:
parameters:
ruby-version: ["3.1.3"]
- rubocop
- semgrep
- test:
requires:
- build-v<< matrix.ruby-version >>
Expand Down
19 changes: 19 additions & 0 deletions .semgrepignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Common large paths
node_modules/
vendor/
*.min.js
spec/

# Semgrep rules folder
.semgrep

# Semgrep-action log folder
.semgrep_logs/

# Tickets to remediate these rules and remove from this list
config/
# https://github.com/pulibrary/geaccirc/issues/62
app/views/
# https://github.com/pulibrary/geaccirc/issues/63
app/controllers/
# https://github.com/pulibrary/geaccirc/issues/64

0 comments on commit 85d05a4

Please sign in to comment.