-
Notifications
You must be signed in to change notification settings - Fork 1.7k
53 lines (44 loc) · 1.51 KB
/
codeql-analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 'CodeQL'
on:
push:
branches:
- develop
pull_request:
# The branches below must be a subset of the branches above
branches: [develop]
schedule:
- cron: '23 19 * * 4'
jobs:
analyze:
name: Analyze ${{ matrix.language }}
runs-on: ubuntu20.04-4cores-16GB
strategy:
fail-fast: false
matrix:
language: ['go', 'javascript']
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Set up Go
if: ${{ matrix.language == 'go' }}
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Touching core/web/assets/index.html
if: ${{ matrix.language == 'go' }}
run: mkdir -p core/web/assets && touch core/web/assets/index.html
- name: Initialize CodeQL
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
- name: Collect Metrics
if: always()
id: collect-gha-metrics
uses: smartcontractkit/push-gha-metrics-action@d2c2b7bdc9012651230b2608a1bcb0c48538b6ec
with:
basic-auth: ${{ secrets.GRAFANA_CLOUD_BASIC_AUTH }}
hostname: ${{ secrets.GRAFANA_CLOUD_HOST }}
this-job-name: Analyze ${{ matrix.language }}
continue-on-error: true