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

Semgrep with Gitlab rules #14

Merged
merged 1 commit into from
Dec 22, 2023
Merged
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
8 changes: 6 additions & 2 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Semgrep

on:
schedule:
- cron: "30 13 * * *" # Sets Semgrep to scan every day at 12:30 UTC.
- cron: "00 14 * * *" # Sets Semgrep to scan every day at 12:30 UTC.
# It is recommended to change the schedule to a random time.

jobs:
Expand All @@ -25,10 +25,14 @@ jobs:
with:
repository: semgrep/semgrep-rules
path: "./semgrep-rules"
# clone gitlab repo to fetch gitlab rules
- name: Clone private repo
run: git clone https://gitlab.com/gitlab-org/security-products/sast-rules.git
# Run the "semgrep ci --sarif" command on the command line of the docker image.
- run: semgrep ci --sarif > semgrep.sarif
env:
SEMGREP_RULES: "./semgrep-rules/elixir/lang"
#SEMGREP_RULES: "./semgrep-rules/elixir/lang"
SEMGREP_RULES: "./sast-rules/javascript"
# Upload SARIF file generated in previous step
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
Expand Down
Loading