diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml new file mode 100644 index 00000000..6227c4b0 --- /dev/null +++ b/.github/workflows/semgrep.yml @@ -0,0 +1,26 @@ +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: 11 10 * * * +name: Semgrep +jobs: + semgrep: + name: semgrep/ci + runs-on: ubuntu-latest + permissions: + contents: read + env: + SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} + container: + image: semgrep/semgrep + steps: + - uses: actions/checkout@v6 + - run: semgrep ci diff --git a/README.md b/README.md index ac5b1110..68aba843 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ ## Setup +test ### Requisites @@ -51,4 +52,4 @@ Host: localhost:5000 Cookie: api_key=myapisecret -... \ No newline at end of file +...