xref: /plugin/openlayersmap/.github/workflows/codeql-analysis.yml (revision c9d92d700baa7282381ed90aff02afef3b57a674)
1*c9d92d70SMark Prins# For most projects, this workflow file will not need changing; you simply need
2*c9d92d70SMark Prins# to commit it to your repository.
3*c9d92d70SMark Prins#
4*c9d92d70SMark Prins# You may wish to alter this file to override the set of languages analyzed,
5*c9d92d70SMark Prins# or to provide custom queries or build logic.
6*c9d92d70SMark Prins#
7*c9d92d70SMark Prins# ******** NOTE ********
8*c9d92d70SMark Prins# We have attempted to detect the languages in your repository. Please check
9*c9d92d70SMark Prins# the `language` matrix defined below to confirm you have the correct set of
10*c9d92d70SMark Prins# supported CodeQL languages.
11*c9d92d70SMark Prins#
12*c9d92d70SMark Prinsname: "CodeQL"
13*c9d92d70SMark Prins
14*c9d92d70SMark Prinson:
15*c9d92d70SMark Prins  push:
16*c9d92d70SMark Prins    branches: [ master ]
17*c9d92d70SMark Prins  pull_request:
18*c9d92d70SMark Prins    # The branches below must be a subset of the branches above
19*c9d92d70SMark Prins    branches: [ master ]
20*c9d92d70SMark Prins  schedule:
21*c9d92d70SMark Prins    - cron: '25 5 * * 0'
22*c9d92d70SMark Prins
23*c9d92d70SMark Prinsjobs:
24*c9d92d70SMark Prins  analyze:
25*c9d92d70SMark Prins    name: Analyze
26*c9d92d70SMark Prins    runs-on: ubuntu-latest
27*c9d92d70SMark Prins    permissions:
28*c9d92d70SMark Prins      actions: read
29*c9d92d70SMark Prins      contents: read
30*c9d92d70SMark Prins      security-events: write
31*c9d92d70SMark Prins
32*c9d92d70SMark Prins    strategy:
33*c9d92d70SMark Prins      fail-fast: false
34*c9d92d70SMark Prins      matrix:
35*c9d92d70SMark Prins        language: [ 'javascript' ]
36*c9d92d70SMark Prins        # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37*c9d92d70SMark Prins        # Learn more about CodeQL language support at https://git.io/codeql-language-support
38*c9d92d70SMark Prins
39*c9d92d70SMark Prins    steps:
40*c9d92d70SMark Prins    - name: Checkout repository
41*c9d92d70SMark Prins      uses: actions/checkout@v2
42*c9d92d70SMark Prins
43*c9d92d70SMark Prins    # Initializes the CodeQL tools for scanning.
44*c9d92d70SMark Prins    - name: Initialize CodeQL
45*c9d92d70SMark Prins      uses: github/codeql-action/init@v1
46*c9d92d70SMark Prins      with:
47*c9d92d70SMark Prins        languages: ${{ matrix.language }}
48*c9d92d70SMark Prins        # If you wish to specify custom queries, you can do so here or in a config file.
49*c9d92d70SMark Prins        # By default, queries listed here will override any specified in a config file.
50*c9d92d70SMark Prins        # Prefix the list here with "+" to use these queries and those in the config file.
51*c9d92d70SMark Prins        # queries: ./path/to/local/query, your-org/your-repo/queries@main
52*c9d92d70SMark Prins
53*c9d92d70SMark Prins    # Autobuild attempts to build any compiled languages  (C/C++, C#, or Java).
54*c9d92d70SMark Prins    # If this step fails, then you should remove it and run the build manually (see below)
55*c9d92d70SMark Prins    - name: Autobuild
56*c9d92d70SMark Prins      uses: github/codeql-action/autobuild@v1
57*c9d92d70SMark Prins
58*c9d92d70SMark Prins    # ℹ️ Command-line programs to run using the OS shell.
59*c9d92d70SMark Prins    # �� https://git.io/JvXDl
60*c9d92d70SMark Prins
61*c9d92d70SMark Prins    # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62*c9d92d70SMark Prins    #    and modify them (or add more) to build your code if your project
63*c9d92d70SMark Prins    #    uses a compiled language
64*c9d92d70SMark Prins
65*c9d92d70SMark Prins    #- run: |
66*c9d92d70SMark Prins    #   make bootstrap
67*c9d92d70SMark Prins    #   make release
68*c9d92d70SMark Prins
69*c9d92d70SMark Prins    - name: Perform CodeQL Analysis
70*c9d92d70SMark Prins      uses: github/codeql-action/analyze@v1
71