From 16ca226080f1ef14a1f2ba95f490bae7e9d6e326 Mon Sep 17 00:00:00 2001 From: PhilipA20 <85197411+PhilipA20@users.noreply.github.com> Date: Wed, 12 Jul 2023 12:52:20 -0400 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..cc66f5ca7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: Semgrep - Team Vaccine +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: '20 1 * * *' +jobs: + semgrep: + name: semgrep/ci + runs-on: ubuntu-20.04 + env: + SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN_VACCINE }} + container: + image: returntocorp/semgrep + if: (github.actor != 'dependabot[bot]') + steps: + - uses: actions/checkout@v3 + - run: semgrep ci