From 9e02da0f9e0a7f61216a5de7b17a7e9a0c47c825 Mon Sep 17 00:00:00 2001 From: hrushikeshdeshpande <161167942+hrushikeshdeshpande@users.noreply.github.com> Date: Thu, 16 May 2024 16:51:03 -0400 Subject: [PATCH 1/2] Fixing checkout action from v3 to v4 and adding a one line test (#2) * Adding Semgrep CI job * Added new semgrep_app_token, testing it with this PR * fixing checkout action from v3 to v4 --- .github/workflows/semgrep.yml | 2 +- test/test1.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 test/test1.py diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index 5255244..e226b02 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -22,5 +22,5 @@ jobs: image: semgrep/semgrep if: (github.actor != 'dependabot[bot]') steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: semgrep ci \ No newline at end of file diff --git a/test/test1.py b/test/test1.py new file mode 100644 index 0000000..00928da --- /dev/null +++ b/test/test1.py @@ -0,0 +1 @@ +print("this is testing") \ No newline at end of file From 6ed4871b7daf9687b20ed5a802df9f072a331796 Mon Sep 17 00:00:00 2001 From: hrushikeshdeshpande <161167942+hrushikeshdeshpande@users.noreply.github.com> Date: Fri, 28 Jun 2024 16:29:27 -0400 Subject: [PATCH 2/2] semgrep testing --- .github/workflows/semgrep.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index e226b02..489c5f8 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -1,5 +1,7 @@ -name: Semgrep +name: Reusable worfklow with Semgrep + on: + workflow_call: workflow_dispatch: {} pull_request: {} push: