mirror of https://github.com/snachodog/mybuddy.git
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
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:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: '3.x'
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: ~/.local/share/virtualenvs
|
|
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }}
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v2
|
|
with:
|
|
config-file: ./.github/codeql/codeql-config.yml
|
|
languages: ${{ matrix.language }}
|
|
setup-python-dependencies: false
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pipenv wheel
|
|
pipenv install
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v2
|