Skip to content

Commit

Permalink
Add Semgrep baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
jreyesr committed Nov 24, 2023
1 parent a2f9f6b commit 0d44075
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@v3
- run: semgrep ci --config semgrep_rules --include=posts/**/*.md
- run: semgrep ci --config semgrep_rules --include=posts/**/*.md --baseline-commit=a2f9f6bfdbb4675907465c0a72e7d4e9ea68131a


# Build job
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ repos:
rev: 'v1.50.0'
hooks:
- id: semgrep
args: ['--config', 'semgrep_rules', '--error', '--skip-unknown-extensions', '--include=posts/**/*.md', '--verbose']
args: ['--config', 'semgrep_rules', '--error', '--skip-unknown-extensions', '--include=content/posts/**/*.md', '--verbose']
3 changes: 3 additions & 0 deletions .semgrepignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
themes
content/series
archetypes

0 comments on commit 0d44075

Please sign in to comment.