Skip to content
Open
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
30 changes: 30 additions & 0 deletions .github/workflows/semgrep-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: semgrep rules test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install semgrep
- name: Run tests
run: |
python -m semgrep --quiet --json --test rules
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
test:
semgrep --validate --config=$$PWD/nodejsscan $$PWD
semgrep --validate --config=$$PWD/rules $$PWD
semgrep --test --strict --test-ignore-todo $$PWD
28 changes: 0 additions & 28 deletions nodejsscan/hardcoded_secrets.js

This file was deleted.

185 changes: 0 additions & 185 deletions nodejsscan/hardcoded_secrets.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions nodejsscan/missing_good_controls.js

This file was deleted.

Loading