xref: /OpenGrok/.github/workflows/codeql-analysis.yml (revision 0e510f5b1c7ef0653125e789f0618ba0ef23861a)
1*0e510f5bSVladimir Kotalname: "CodeQL"
2*0e510f5bSVladimir Kotal
3*0e510f5bSVladimir Kotalon:
4*0e510f5bSVladimir Kotal  push:
5*0e510f5bSVladimir Kotal    branches: [ master ]
6*0e510f5bSVladimir Kotal  pull_request:
7*0e510f5bSVladimir Kotal    # The branches below must be a subset of the branches above
8*0e510f5bSVladimir Kotal    branches: [ master ]
9*0e510f5bSVladimir Kotal  schedule:
10*0e510f5bSVladimir Kotal    - cron: '41 17 * * 5'
11*0e510f5bSVladimir Kotal
12*0e510f5bSVladimir Kotaljobs:
13*0e510f5bSVladimir Kotal  analyze:
14*0e510f5bSVladimir Kotal    name: Analyze
15*0e510f5bSVladimir Kotal    runs-on: ubuntu-latest
16*0e510f5bSVladimir Kotal
17*0e510f5bSVladimir Kotal    strategy:
18*0e510f5bSVladimir Kotal      fail-fast: false
19*0e510f5bSVladimir Kotal      matrix:
20*0e510f5bSVladimir Kotal        language: [ 'java', 'javascript', 'python' ]
21*0e510f5bSVladimir Kotal
22*0e510f5bSVladimir Kotal    steps:
23*0e510f5bSVladimir Kotal    - name: Checkout repository
24*0e510f5bSVladimir Kotal      uses: actions/checkout@v2
25*0e510f5bSVladimir Kotal
26*0e510f5bSVladimir Kotal    - name: Initialize CodeQL
27*0e510f5bSVladimir Kotal      uses: github/codeql-action/init@v1
28*0e510f5bSVladimir Kotal      with:
29*0e510f5bSVladimir Kotal        languages: ${{ matrix.language }}
30*0e510f5bSVladimir Kotal
31*0e510f5bSVladimir Kotal    - name: Autobuild
32*0e510f5bSVladimir Kotal      uses: github/codeql-action/autobuild@v1
33*0e510f5bSVladimir Kotal
34*0e510f5bSVladimir Kotal    - name: Perform CodeQL Analysis
35*0e510f5bSVladimir Kotal      uses: github/codeql-action/analyze@v1
36