Skip to content

Commit f12fc28

Browse files
authored
Create semgrep_app_config.yml
1 parent 56b9e9a commit f12fc28

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# This workflow file requires a free account on Semgrep.dev to
7+
# manage rules, file ignores, notifications, and more.
8+
#
9+
# See https://semgrep.dev/docs
10+
11+
name: Semgrep
12+
13+
on:
14+
push:
15+
branches: [ master ]
16+
pull_request:
17+
# The branches below must be a subset of the branches above
18+
branches: [ master ]
19+
schedule:
20+
- cron: '24 0 * * 4'
21+
22+
permissions:
23+
contents: read
24+
25+
jobs:
26+
semgrep:
27+
permissions:
28+
contents: read # for actions/checkout to fetch code
29+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
30+
name: Scan
31+
runs-on: ubuntu-latest
32+
steps:
33+
# Checkout project source
34+
- uses: actions/checkout@v3
35+
36+
# Scan code using project's configuration on https://semgrep.dev/manage
37+
- uses: returntocorp/semgrep-action@fcd5ab7459e8d91cb1777481980d1b18b4fc6735
38+
with:
39+
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
40+
publishDeployment: ${{ secrets.SEMGREP_DEPLOYMENT_ID }}
41+
generateSarif: "1"
42+
43+
# Upload SARIF file generated in previous step
44+
- name: Upload SARIF file
45+
uses: github/codeql-action/upload-sarif@v1
46+
with:
47+
sarif_file: semgrep.sarif
48+
if: always()

0 commit comments

Comments
 (0)