diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/codeql-analysis.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..7b3b6fd --- /dev/null +++ b/.github/workflows/codeql-analysis.yml | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | name: "CodeQL" | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | branches: [ master ] | ||
| 6 | pull_request: | ||
| 7 | # The branches below must be a subset of the branches above | ||
| 8 | branches: [ master ] | ||
| 9 | schedule: | ||
| 10 | - cron: '37 5 * * 3' | ||
| 11 | |||
| 12 | jobs: | ||
| 13 | analyze: | ||
| 14 | name: Analyze | ||
| 15 | runs-on: ubuntu-latest | ||
| 16 | container: php:latest | ||
| 17 | permissions: | ||
| 18 | actions: read | ||
| 19 | contents: read | ||
| 20 | security-events: write | ||
| 21 | |||
| 22 | strategy: | ||
| 23 | fail-fast: false | ||
| 24 | matrix: | ||
| 25 | language: [ 'cpp' ] | ||
| 26 | |||
| 27 | steps: | ||
| 28 | - name: Checkout repository | ||
| 29 | uses: actions/checkout@v2 | ||
| 30 | |||
| 31 | # Initializes the CodeQL tools for scanning. | ||
| 32 | - name: Initialize CodeQL | ||
| 33 | uses: github/codeql-action/init@v1 | ||
| 34 | with: | ||
| 35 | languages: ${{ matrix.language }} | ||
| 36 | # If you wish to specify custom queries, you can do so here or in a config file. | ||
| 37 | # By default, queries listed here will override any specified in a config file. | ||
| 38 | # Prefix the list here with "+" to use these queries and those in the config file. | ||
| 39 | # queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
| 40 | |||
| 41 | - run: | | ||
| 42 | make release | ||
| 43 | |||
| 44 | - name: Perform CodeQL Analysis | ||
| 45 | uses: github/codeql-action/analyze@v1 | ||
