| 1 |
name: "CodeQL" |
| 2 |
|
| 3 |
on: |
| 4 |
workflow_dispatch: |
| 5 |
pull_request: |
| 6 |
push: |
| 7 |
branches: [master] |
| 8 |
schedule: |
| 9 |
- cron: '0 14 * * 2' |
| 10 |
|
| 11 |
jobs: |
| 12 |
analyze: |
| 13 |
name: Analyze |
| 14 |
runs-on: ubuntu-latest |
| 15 |
|
| 16 |
strategy: |
| 17 |
fail-fast: false |
| 18 |
matrix: |
| 19 |
language: ['python'] |
| 20 |
|
| 21 |
steps: |
| 22 |
- name: Checkout repository |
| 23 |
uses: actions/checkout@v2 |
| 24 |
with: |
| 25 |
|
| 26 |
|
| 27 |
fetch-depth: 2 |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
- run: git checkout HEAD^2 |
| 32 |
if: ${{ github.event_name == 'pull_request' }} |
| 33 |
|
| 34 |
|
| 35 |
- name: Initialize CodeQL |
| 36 |
uses: github/codeql-action/init@v1 |
| 37 |
with: |
| 38 |
languages: ${{ matrix.language }} |
| 39 |
|
| 40 |
ell. |
| 41 |
Dl |
| 42 |
|
| 43 |
- name: Perform CodeQL Analysis |
| 44 |
uses: github/codeql-action/analyze@v1 |