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