2021-09-25 19:14:00 +00:00
|
|
|
name: "CodeQL"
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
schedule:
|
|
|
|
- cron: '33 0 * * 3'
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language: [ 'javascript', 'python' ]
|
|
|
|
steps:
|
2022-06-03 03:19:24 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v3
|
|
|
|
id: setup-python
|
2021-11-07 21:18:55 +00:00
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
2022-06-03 03:11:49 +00:00
|
|
|
- uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: ~/.local/share/virtualenvs
|
|
|
|
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }}
|
2022-06-03 03:19:24 +00:00
|
|
|
- uses: github/codeql-action/init@v2
|
2021-09-25 19:14:00 +00:00
|
|
|
with:
|
2021-09-25 20:16:11 +00:00
|
|
|
config-file: ./.github/codeql/codeql-config.yml
|
2021-09-25 19:14:00 +00:00
|
|
|
languages: ${{ matrix.language }}
|
2021-09-25 20:16:11 +00:00
|
|
|
setup-python-dependencies: false
|
2022-06-03 03:11:49 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pipenv wheel
|
|
|
|
pipenv install
|
2022-06-03 03:19:24 +00:00
|
|
|
- uses: github/codeql-action/analyze@v2
|