Skip to content

Commit

Permalink
Merge branch 'master' into sles-url
Browse files Browse the repository at this point in the history
  • Loading branch information
karianna authored Mar 5, 2024
2 parents 9fdfbdc + b6cd869 commit da31677
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/semgrep_diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Semgrep Differential Scan
on:
pull_request:

jobs:
semgrep-diff:
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep

steps:
# Step 1: Clone application source code
- name: Checkout code
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
fetch-depth: 0

# Step 2: Differential scan
- name: Differential scan
run: |
semgrep scan --error --metrics=off --config="p/trailofbits" \
--baseline-commit ${{ github.event.before }}
2 changes: 2 additions & 0 deletions .semgrepignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore The Nagios Configuration J2 templates, as they are only examples.
./ansible/playbooks/nagios/roles/Nagios_Config/files/templates/*.j2

0 comments on commit da31677

Please sign in to comment.