This repo shows how semgrep rules can be run as part of a CI process over a number of code files.
The slide deck from the talk is here:
Omniscient AppSec - Michal Kamensky & Josh Grossman - pycon - DISTRIBUTED.pdf
Code examples are in the "code/python" folder.
Semgrep rule examples are in the "semgrep_rules" folder.
The Github Actions are in the ".github/workflows" folder.