Files
Rabby/.github/workflows/semgrep.yml
he1m4n6a c0878d688f Update semgrep.yml (#2760)
fix semgrep scan failure issue
2025-01-23 17:20:31 +08:00

31 lines
651 B
YAML

on:
workflow_dispatch: {}
pull_request: {}
push:
branches:
- develop
paths:
- .github/workflows/semgrep.yml
name: Semgrep
jobs:
semgrep:
name: semgrep/ci
runs-on: ubuntu-latest
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
apk add --no-cache yarn
yarn install --ignore-engines || true
- name: scan dependencies code
run: mv node_modules _node_modules
- name: Run Semgrep
run: semgrep ci