Skip to content

Commit 83970fe

Browse files
author
Voidd
committed
Added Semgrep CI/CD scan
Updated semgrep.yml file to fix error about dependabot not found
1 parent 959aa47 commit 83970fe

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/semgrep.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
name: Run semgrep checks
2-
1+
name: Semgrep
32
on:
43
pull_request:
5-
branches: [main, master]
6-
7-
permissions:
8-
contents: read
4+
workflow_dispatch:
95

106
jobs:
11-
run-semgrep-reusable-workflow:
12-
uses: snowflakedb/reusable-workflows/.github/workflows/semgrep-v2.yml@main
13-
secrets:
14-
token: ${{ secrets.SEMGREP_APP_TOKEN }}
7+
semgrep:
8+
name: Run Semgrep
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 30
11+
container:
12+
# A Docker image with Semgrep installed. Do not change this.
13+
image: returntocorp/semgrep
14+
#if: (github.actor != dependabot[bot])
15+
steps:
16+
- uses: actions/checkout@v4
17+
- run: semgrep ci
18+
env:
19+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN_PUBLIC }}

0 commit comments

Comments
 (0)