| 1 | name: "Code scanning - action" |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [master, ] |
| 6 | pull_request: |
| 7 | branches: [master] |
| 8 | schedule: |
| 9 | - cron: '0 23 * * 5' |
| 10 | |
| 11 | jobs: |
| 12 | CodeQL-Build: |
| 13 | |
| 14 | runs-on: ubuntu-latest |
| 15 | |
| 16 | steps: |
| 17 | - name: Checkout repository |
| 18 | uses: actions/checkout@v3 |
| 19 | with: |
| 20 | fetch-depth: 2 |
| 21 | |
| 22 | - run: git checkout HEAD^2 |
| 23 | if: ${{ github.event_name == 'pull_request' }} |
| 24 | |
| 25 | - name: Initialize CodeQL |
| 26 | uses: github/codeql-action/init@v2 |
| 27 | |
| 28 | - name: Autobuild |
| 29 | uses: github/codeql-action/autobuild@v2 |
| 30 | |
| 31 | - name: Perform CodeQL Analysis |
| 32 | uses: github/codeql-action/analyze@v2 |