<commit_before>name: Semgrep

on:
  pull_request: {}

  push:
    branches: ["master", "main"]

  schedule:
    - cron: '30 0 1,15 * *'

jobs:
  semgrep:
    name: Scan
    runs-on: ubuntu-latest
    container:
      image: returntocorp/semgrep
    # Skip any PR created by dependabot to avoid permission issues
    if: (github.actor != 'dependabot[bot]')
    steps:
      - uses: actions/checkout@v3

      - run: semgrep ci
        env:
          SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}<commit_msg>Update semgrep.yml<commit_after>name: Semgrep

on:
  pull_request: {}

  push:
    branches:
      - master
      - main

  schedule:
    - cron: '0 * * * *'

jobs:
  fail_if_pull_request_is_draft:
    if: github.event.pull_request.draft == true
    runs-on: ubuntu-latest
    steps:
      - name: Fails in order to indicate that pull request needs to be marked as ready to review and unit tests workflow needs to pass.
        run: exit 1

  semgrep:
    name: Scan
    runs-on: ubuntu-latest
    container:
      image: returntocorp/semgrep
    if: (github.repository_owner == 'auth0')
    
    steps:
      - uses: actions/checkout@v3

      - if: (github.actor != 'dependabot[bot]')
        run: semgrep ci
        env:
          SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
{'fraction_non_alphanumeric': 0.10717039321511179, 'fraction_numerical': 0.008481110254433308, 'mean_word_length': 2.4157894736842107, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '639426', 'n_tokens_mistral': 477, 'n_tokens_neox': 448, 'n_words': 114}