Skip to content

Commit 8bcbd3f

Browse files
authored
Merge branch 'main' into 5.0-dev
2 parents 098a009 + ed8be90 commit 8bcbd3f

File tree

5 files changed

+32
-4
lines changed

5 files changed

+32
-4
lines changed

.changeset/dark-rings-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gradio": minor
3+
---
4+
5+
feat:test semgrep ci

.changeset/tall-impalas-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"website": minor
3+
---
4+
5+
feat:Use latest lite wheel on website

.github/workflows/semgrep.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Semgrep
1+
name: semgrep ci
22

33
on:
44
workflow_run:
@@ -43,9 +43,7 @@ jobs:
4343
with:
4444
repository: ${{ steps.json.outputs.source_repo }}
4545
ref: ${{ steps.json.outputs.sha }}
46-
- run: semgrep ci
47-
env:
48-
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN2 }}
46+
- run: semgrep ci --config .github/workflows/semgrep_rules.yaml
4947
update-status:
5048
permissions:
5149
actions: read

.github/workflows/semgrep_rules.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
rules:
2+
- id: detect-os-system-calls
3+
pattern: os.system(...)
4+
message: "Unsafe use of os.system(). Consider using subprocess.run() instead."
5+
languages: [python]
6+
severity: WARNING
7+
8+
- id: detect-sql-injection
9+
pattern: 'execute("SELECT * FROM " + $TABLE)'
10+
message: "Potential SQL injection detected. Use parameterized queries."
11+
languages: [python]
12+
severity: ERROR
13+
14+
- id: detect-eval-usage
15+
pattern: eval(...)
16+
message: "Use of eval() detected. This can be dangerous if used with untrusted input."
17+
languages: [python]
18+
severity: ERROR

js/_website/src/lib/components/Demos.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script lang="ts">
2+
import WHEEL from "$lib/json/wheel.json";
3+
24
export let name: string;
35
export let code: string;
46
export let highlighted_code: string;

0 commit comments

Comments
 (0)