mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-25 12:10:31 +08:00
parent
f2d97eb1e8
commit
5782b803f6
8
.github/workflows/semgrep.yml
vendored
8
.github/workflows/semgrep.yml
vendored
@ -24,7 +24,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: semgrep/semgrep
|
||||
options: --volume ${{ github.workspace }}/.github/configs:/mnt/
|
||||
volumes:
|
||||
${{ github.workspace }}/.github/configs:/mnt/
|
||||
options: --name semgrepcicontainer
|
||||
outputs:
|
||||
pr_number: ${{ steps.json.outputs.pr_number }}
|
||||
sha: ${{ steps.json.outputs.sha }}
|
||||
@ -44,6 +46,10 @@ jobs:
|
||||
with:
|
||||
repository: ${{ steps.json.outputs.source_repo }}
|
||||
ref: ${{ steps.json.outputs.sha }}
|
||||
- name: restart_semgrepcicontainer
|
||||
uses: docker://docker
|
||||
with:
|
||||
args: docker restart semgrepcicontainer
|
||||
- run: ls -la /mnt
|
||||
- run: semgrep ci --config=/mnt/semgrep_rules.yaml
|
||||
update-status:
|
||||
|
Loading…
x
Reference in New Issue
Block a user