mirror of
https://github.com/meshtastic/firmware.git
synced 2026-11-05 22:04:33 -05:00
33 lines
806 B
YAML
33 lines
806 B
YAML
---
|
|
name: Semgrep Differential Scan
|
|
on: pull_request
|
|
|
|
concurrency:
|
|
group: semgrep-diff-${{ github.event.pull_request.number || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
semgrep-diff:
|
|
runs-on: ubuntu-26.04
|
|
container:
|
|
image: semgrep/semgrep
|
|
|
|
steps:
|
|
# step 1
|
|
- name: clone application source code
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
# step 2
|
|
- name: differential scan
|
|
run: |
|
|
semgrep scan \
|
|
--error \
|
|
--metrics=off \
|
|
--baseline-commit ${{ github.event.pull_request.base.sha }} \
|
|
--config="p/default" \
|
|
--exclude-rule="yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag"
|