1name: "Code scanning - action"
2
3on:
4 push:
5 branches: [master, ]
6 pull_request:
7 # The branches below must be a subset of the branches above
8 branches: [master]
9 schedule:
10 - cron: '0 12 * * 6'
11
12concurrency:
13 group: codeql-${{ github.ref }}
14 cancel-in-progress: true
15
16jobs:
17 CodeQL-Build:
18
19 runs-on: ubuntu-latest
20
21 steps:
22 - name: Checkout repository
23 uses: actions/checkout@v4
24 with:
25 # We must fetch at least the immediate parents so that if this is
26 # a pull request then we can checkout the head.
27 fetch-depth: 2
28
29 # If this run was triggered by a pull request event, then checkout
30 # the head of the pull request instead of the merge commit.
31 - run: git checkout HEAD^2
32 if: ${{ github.event_name == 'pull_request' }}
33
34 # Initializes the CodeQL tools for scanning.
35 - name: Initialize CodeQL
36 uses: github/codeql-action/init@v3
37 with:
38 languages: go, javascript
39
40 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
41 # If this step fails, then you should remove it and run the build manually (see below)
42 - name: Autobuild
43 uses: github/codeql-action/autobuild@v3
44
45 # âšī¸ Command-line programs to run using the OS shell.
46 # đ https://git.io/JvXDl
47
48 # âī¸ If the Autobuild fails above, remove it and uncomment the following three lines
49 # and modify them (or add more) to build your code if your project
50 # uses a compiled language
51
52 #- run: |
53 # make bootstrap
54 # make release
55
56 - name: Perform CodeQL Analysis
57 uses: github/codeql-action/analyze@v3