From 4c1bb2176f7a630e6e3d1f41d9eefd1cdf31b371 Mon Sep 17 00:00:00 2001 From: romovs Date: Wed, 10 Jul 2024 11:33:09 +0300 Subject: [PATCH] Add autoreview and semgrep workflow --- .github/workflows/autoreview.yml | 14 ++++++++++++++ .github/workflows/semgrep.yml | 24 ++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/autoreview.yml create mode 100644 .github/workflows/semgrep.yml diff --git a/.github/workflows/autoreview.yml b/.github/workflows/autoreview.yml new file mode 100644 index 00000000..90e4e472 --- /dev/null +++ b/.github/workflows/autoreview.yml @@ -0,0 +1,14 @@ +name: Auto reviews release +on: pull_request +jobs: + reviews: + runs-on: ubuntu-latest + steps: + - name: Auto reviews branches + uses: golfzaptw/action-auto-reviews-from-branches@2.0.0 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} + EVENT_TYPE: APPROVE + BRANCHES: master + AUTHOR: romovs + MESSAGE: Approved \ No newline at end of file diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml new file mode 100644 index 00000000..e265b9eb --- /dev/null +++ b/.github/workflows/semgrep.yml @@ -0,0 +1,24 @@ +on: + workflow_dispatch: {} + pull_request: {} + push: + branches: + - main + - master + paths: + - .github/workflows/semgrep.yml + schedule: + # random HH:MM to avoid a load spike on GitHub Actions at 00:00 + - cron: 17 22 * * * +name: Semgrep +jobs: + semgrep: + name: semgrep/ci + runs-on: ubuntu-20.04 + env: + SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} + container: + image: returntocorp/semgrep + steps: + - uses: actions/checkout@v3 + - run: semgrep ci