From 85d05a47224a7646e38edcb78dd8b38f44e85d19 Mon Sep 17 00:00:00 2001 From: Ryan Laddusaw Date: Mon, 23 Sep 2024 15:07:47 -0400 Subject: [PATCH] semgrep config and issues --- .circleci/config.yml | 9 +++++++++ .semgrepignore | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .semgrepignore diff --git a/.circleci/config.yml b/.circleci/config.yml index 05b3fbc..fad13e6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: @@ -75,6 +83,7 @@ workflows: parameters: ruby-version: ["3.1.3"] - rubocop + - semgrep - test: requires: - build-v<< matrix.ruby-version >> diff --git a/.semgrepignore b/.semgrepignore new file mode 100644 index 0000000..778e350 --- /dev/null +++ b/.semgrepignore @@ -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