From 4519c117129074b51b8238614c5a074528089e04 Mon Sep 17 00:00:00 2001 From: jackdawm <123431751+jackdawm@users.noreply.github.com> Date: Fri, 17 Nov 2023 13:38:17 -0500 Subject: [PATCH] Create public Semgrep workflow definition Due to some kind of undocumented Github problem, a public repo can only be required to run workflows from other public repos. --- .github/workflows/semgrep.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/semgrep.yml diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml new file mode 100644 index 0000000..fb83cce --- /dev/null +++ b/.github/workflows/semgrep.yml @@ -0,0 +1,31 @@ +name: Semgrep +on: + workflow_dispatch: {} + pull_request: + types: [opened, reopened, synchronize] + merge_group: + push: + branches: + - main + - master + paths: + - .github/workflows/semgrep.yml +jobs: + semgrep: + name: semgrep/ci + runs-on: ubuntu-latest + permissions: + packages: read + contents: read + env: + SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} + container: + image: ghcr.io/temporalio/semgrep:latest + credentials: + username: ${{ github.actor }} + password: ${{ secrets.github_token }} + if: (github.actor != 'dependabot[bot]') + steps: + - uses: actions/checkout@v4 + - name: Run semgrep ci + run: semgrep ci