From b25a64e98b7acd5bd21f9ee7990e5d23f4b70a51 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Wed, 2 Oct 2024 15:58:01 -0700 Subject: [PATCH] test semgrep in ci (#9507) * test * add changeset * add token * add filter --------- Co-authored-by: gradio-pr-bot --- .changeset/tall-dryers-own.md | 5 +++++ .github/workflows/semgrep.yml | 3 +++ gradio/interface.py | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/tall-dryers-own.md diff --git a/.changeset/tall-dryers-own.md b/.changeset/tall-dryers-own.md new file mode 100644 index 0000000000..f959ad77fe --- /dev/null +++ b/.changeset/tall-dryers-own.md @@ -0,0 +1,5 @@ +--- +"gradio": minor +--- + +feat:test semgrep in ci diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index 9accdd3377..d73d810c53 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -33,6 +33,9 @@ jobs: - uses: actions/checkout@v4 - uses: "gradio-app/gradio/.github/actions/changes@main" id: changes + with: + filter: "gradio" + token: ${{ secrets.GITHUB_TOKEN }} semgrep: permissions: contents: read diff --git a/gradio/interface.py b/gradio/interface.py index e25a034498..129e1fd816 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -1,5 +1,5 @@ """ -This file defines two useful high-level abstractions to build Gradio apps: Interface and TabbedInterface. + This file defines two useful high-level abstractions to build Gradio apps: Interface and TabbedInterface. """ from __future__ import annotations