github.com/thediveo/gons@v0.9.9/.github/workflows/codeql-analysis.yaml (about)

     1  name: "CodeQL"
     2  
     3  on:
     4    push:
     5      branches:
     6        - master
     7    pull_request:
     8      branches:
     9        - master
    10        - develop
    11    schedule:
    12      - cron: '36 13 * * 1'
    13  
    14  jobs:
    15    analyze:
    16      name: Analyze
    17      runs-on: ubuntu-latest
    18  
    19      permissions:
    20        actions: read # for github/codeql-action/init to get workflow details
    21        contents: read # for actions/checkout to fetch code
    22        security-events: write # for github/codeql-action/analyze to upload SARIF results
    23  
    24      strategy:
    25        fail-fast: false
    26        matrix:
    27          language: [ 'go' ]
    28          # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
    29          # Learn more:
    30          # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
    31  
    32      steps:
    33        - name: Checkout repository
    34          uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3
    35  
    36        # Initializes the CodeQL tools for scanning.
    37        - name: Initialize CodeQL
    38          uses: github/codeql-action/init@49abf0ba24d0b7953cb586944e918a0b92074c80 # pin@v2
    39          with:
    40            languages: ${{ matrix.language }}
    41            # If you wish to specify custom queries, you can do so here or in a config file.
    42            # By default, queries listed here will override any specified in a config file.
    43            # Prefix the list here with "+" to use these queries and those in the config file.
    44            # queries: ./path/to/local/query, your-org/your-repo/queries@main
    45  
    46            # Autobuild attempts to build any compiled languages  (C/C++, C#, or Java).
    47            # If this step fails, then you should remove it and run the build manually (see below)
    48        - name: Autobuild
    49          uses: github/codeql-action/autobuild@49abf0ba24d0b7953cb586944e918a0b92074c80 # pin@v2
    50  
    51        # ℹī¸ Command-line programs to run using the OS shell.
    52        # 📚 https://git.io/JvXDl
    53        # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines
    54        #    and modify them (or add more) to build your code if your project
    55        #    uses a compiled language
    56        #- run: |
    57        #   make bootstrap
    58        #   make release
    59        - name: Perform CodeQL Analysis
    60          uses: github/codeql-action/analyze@49abf0ba24d0b7953cb586944e918a0b92074c80 # pin@v2