• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: "CodeQL"
2
3on:
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: '4 0 * * 6'
11
12jobs:
13  analyze:
14    name: Analyze
15    runs-on: ubuntu-latest
16    permissions:
17      actions: read
18      contents: read
19      security-events: write
20
21    strategy:
22      fail-fast: false
23      matrix:
24        language: [ 'java' ]
25
26    steps:
27    - name: Checkout repository
28      uses: actions/checkout@v3
29
30    # Initializes the CodeQL tools for scanning.
31    - name: Initialize CodeQL
32      uses: github/codeql-action/init@v2
33      with:
34        languages: ${{ matrix.language }}
35
36    - name: Autobuild
37      uses: github/codeql-action/autobuild@v2
38
39    - name: Perform CodeQL Analysis
40      uses: github/codeql-action/analyze@v2
41      with:
42        category: "/language:${{matrix.language}}"
43