Skip to content
Open
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
29 changes: 29 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Name of this GitHub Actions workflow.
name: Semgrep

on:
# Scan changed files in PRs (diff-aware scanning):
pull_request: {}
# Scan on-demand through GitHub Actions interface:
workflow_dispatch: {}
# Scan mainline branches and report all findings:
push:
branches: ["main"]
# Schedule the CI job (this method uses cron syntax):
schedule:
- cron: '50 14 * * *'
# It is recommended to change the schedule to a random time.

jobs:
semgrep-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Semgrep
uses: utilitywarehouse/semgrep-rules/setup-semgrep@latest
with:
# <required> Github token used to checkout private rules
token: ${{ secrets.DEPLOY_GITHUB_TOKEN }}
# <optional> Enable verbose output to help debug rules
verbose: true
Loading