From 186f6474d33b7684f82ad37d47ab42a52631136f Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Sat, 5 Oct 2024 15:34:14 -0700 Subject: [PATCH] semgrep test (#9549) * semgrep fix * test semgrep * add changeset * change * revert interface --------- Co-authored-by: gradio-pr-bot --- .changeset/huge-beers-march.md | 5 +++++ .github/workflows/semgrep.yml | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/huge-beers-march.md diff --git a/.changeset/huge-beers-march.md b/.changeset/huge-beers-march.md new file mode 100644 index 0000000000..637e7762bb --- /dev/null +++ b/.changeset/huge-beers-march.md @@ -0,0 +1,5 @@ +--- +"gradio": minor +--- + +feat:semgrep test diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index 12418e7aa5..0abf5575dd 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -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