cabaebb4b0
Why I did it github action will report error on forked repos. It is not by design. keep 'Approved for xxx branch' label in auto cherry pick workflow. How I did it Disable github action on folked repos. Keep 'approved for xxx' label in auto cherry pick workflow. How to verify it Which release bra
23 lines
410 B
YAML
23 lines
410 B
YAML
name: Semgrep
|
|
|
|
on:
|
|
pull_request: {}
|
|
push:
|
|
branches:
|
|
- master
|
|
- '201[7-9][0-1][0-9]'
|
|
- '202[0-9][0-1][0-9]'
|
|
|
|
jobs:
|
|
semgrep:
|
|
if: github.repository_owner == 'sonic-net'
|
|
name: Semgrep
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: returntocorp/semgrep
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: semgrep ci
|
|
env:
|
|
SEMGREP_RULES: p/default
|