From 75e665e6f795cadfefc2aa8408d17479d6eaf7ec Mon Sep 17 00:00:00 2001 From: Poovamraj T T Date: Wed, 10 Jan 2024 13:25:17 +0100 Subject: [PATCH] Add Semgrep and CODEOWNERS to repo --- .github/CODEOWNERS | 1 + .github/workflows/semgrep.yaml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/semgrep.yaml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..f726e00 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @openfga/dx \ No newline at end of file diff --git a/.github/workflows/semgrep.yaml b/.github/workflows/semgrep.yaml new file mode 100644 index 0000000..571fd4f --- /dev/null +++ b/.github/workflows/semgrep.yaml @@ -0,0 +1,23 @@ +name: Semgrep +on: + push: + branches: + - main + +permissions: + contents: read + +jobs: + semgrep: + name: Scan + runs-on: ubuntu-latest + container: + image: returntocorp/semgrep + if: (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot') + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.5.4 + with: + fetch-depth: 0 + - run: semgrep ci + env: + SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} \ No newline at end of file