forked from andrewjsaid/builderbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 940 Bytes
/
semgrep.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on:
pull_request:
branches: [master]
push:
branches:
- main
- master
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
inputs:
reason:
description: "The reason for running the workflow"
required: true
default: "Manual run"
name: Semgrep
jobs:
semgrep:
name: Semgrep/CI
runs-on: ubuntu-latest
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
image: returntocorp/semgrep
# https://github.com/actions/runner/issues/2033#issuecomment-1598547465
options: --user 1001
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4.2.2
- name: "Check for changed files"
uses: dorny/paths-filter@v3
id: filter
with:
filters: .github/filter.yml
- name: 'Run Semgrep'
if: steps.filter.outputs.code == 'true' || steps.filter.outputs.semgrep == 'true'
run: semgrep ci