Skip to content

Commit d0b5f6a

Browse files
authored
ci(semgrep): add scan workflow (#22)
1 parent 1aaa5f0 commit d0b5f6a

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

‎.github/workflows/semgrep.yml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Semgrep
2+
3+
permissions: {}
4+
5+
on:
6+
workflow_dispatch:
7+
pull_request:
8+
types: [opened, synchronize]
9+
push:
10+
branches:
11+
- main
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
15+
cancel-in-progress: ${{ github.ref_name != 'main' }}
16+
17+
jobs:
18+
semgrep:
19+
name: Semgrep
20+
runs-on: ubuntu-latest
21+
container:
22+
image: semgrep/semgrep:1.170.0
23+
steps:
24+
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
25+
26+
- run: semgrep scan --config auto

0 commit comments

Comments
 (0)