From 385c8b1a4598e41cb8f70584d246490b4bd0283e Mon Sep 17 00:00:00 2001 From: saisatishkarra Date: Wed, 24 Jan 2024 03:03:44 -0600 Subject: [PATCH] feat: Add SAST scanning using semgrep (#158) --- .github/workflows/sast.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/sast.yml diff --git a/.github/workflows/sast.yml b/.github/workflows/sast.yml new file mode 100644 index 00000000..e24321bf --- /dev/null +++ b/.github/workflows/sast.yml @@ -0,0 +1,30 @@ +name: SAST + +on: + pull_request: + branches: + - master + push: + branches: + - master + tags: + - 'v*.*.*' + workflow_dispatch: {} + + +jobs: + semgrep: + name: Semgrep SAST + runs-on: ubuntu-latest + permissions: + # required for all workflows + security-events: write + # only required for workflows in private repositories + actions: read + contents: read + + if: (github.actor != 'dependabot[bot]') + + steps: + - uses: actions/checkout@v4 + - uses: Kong/public-shared-actions/security-actions/semgrep@bd3d75259607dd015bea3b3313123f53b80e9d7f