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