semgrep test (#9549)

* semgrep fix

* test semgrep

* add changeset

* change

* revert interface

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Abubakar Abid 2024-10-05 15:34:14 -07:00 committed by GitHub
parent 79f6e43ea2
commit 186f6474d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"gradio": minor
---
feat:semgrep test

View File

@ -24,6 +24,7 @@ jobs:
runs-on: ubuntu-latest
container:
image: semgrep/semgrep
options: --volume /.github/workflows/semgrep_rules.yaml:/mnt/semgrep_rules.yaml
outputs:
pr_number: ${{ steps.json.outputs.pr_number }}
sha: ${{ steps.json.outputs.sha }}
@ -43,7 +44,7 @@ jobs:
with:
repository: ${{ steps.json.outputs.source_repo }}
ref: ${{ steps.json.outputs.sha }}
- run: semgrep ci --config .github/semgrep_rules.yaml
- run: semgrep ci --config /mnt/semgrep_rules.yaml
update-status:
permissions:
actions: read