From 00d56110a38a18644adaa45c67bffd76ebb54e03 Mon Sep 17 00:00:00 2001 From: saisatishkarra Date: Tue, 23 Jan 2024 10:12:45 -0600 Subject: [PATCH] Add SAST scanning using semgrep --- .github/workflows/sast.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 000000000..968c6f5e1 --- /dev/null +++ b/.github/workflows/sast.yml @@ -0,0 +1,27 @@ +name: SAST + +on: + pull_request: {} + push: + branches: + - master + - release/* + 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