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

Feat semgrep no docker version #15

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
16 changes: 9 additions & 7 deletions .github/workflows/sast_semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ on:
description: Timeout to break the job.
required: false
default: 5
semgrep-version:
type: string
description: Semgrep Image tag
required: false
default: '1.89'
runs-on:
type: string
description: Execution Runners
Expand All @@ -27,17 +22,24 @@ jobs:
name: Scan Semgrep
runs-on: ${{ inputs.runs-on }}
timeout-minutes: ${{ inputs.timeout-minutes }}
container:
image: returntocorp/semgrep:${{ inputs.semgrep-version }}
steps:
- name: checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #@v4.1.7
with:
token: ${{ secrets.token }}

- name: install python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 #@5.2.0
with:
python-version: '3.12'

- name: install reqs
run: pip install semgrep

- name: semgrep ci
id: scan
run: |
cd ${{ github.workspace }}
semgrep ci --output semgrep.output
cat semgrep.output
env:
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
semgrep