<commit_before><commit_msg>Configure code analysis<commit_after>name: CodeQL

on:
  push:
  pull_request:
  schedule:
    - cron: '0 9 * * *'
  workflow_dispatch:

jobs:
  analyze:
    runs-on: ubuntu-latest
    permissions:
      actions: read
      contents: read
      pull-requests: read
      security-events: write
    strategy:
      fail-fast: false
      matrix:
        language: [ 'go', 'javascript' ]
    steps:
      - uses: actions/checkout@v3
      - uses: bazelbuild/setup-bazelisk@v2
      - uses: github/codeql-action/init@v2
        with:
          languages: ${{ matrix.language }}
          # See https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
          queries: +security-extended,security-and-quality
      - name: Build
        run: bazel build ...
      - uses: github/codeql-action/analyze@v2
{'fraction_non_alphanumeric': 0.11889596602972399, 'fraction_numerical': 0.006369426751592357, 'mean_word_length': 2.4797047970479706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '113018', 'n_tokens_mistral': 314, 'n_tokens_neox': 309, 'n_words': 53}