-
-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·106 lines (96 loc) · 3.36 KB
/
CodeQuality.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# 🐻❄️📦 charted-server: Free, open source, and reliable Helm Chart registry made in Kotlin.
# Copyright 2022-2023 Noelware <team@noelware.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Code Quality
on:
workflow_dispatch: {}
schedule:
- cron: 0 0 * * *
push:
branches:
- issue/gh-**
- feat/**
- main
paths-ignore:
- 'scripts/*.sh'
- .github/**
- .vscode/**
- .coder/**
- assets/**
- .*ignore
- '**.md'
- LICENSE
- renovate.json
jobs:
codeql:
name: CodeQL [${{matrix.languages}}])
runs-on: ubuntu-latest
strategy:
matrix:
languages: [java, kotlin]
permissions:
security-events: write
contents: read
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup latest Java
uses: actions/setup-java@v3
with:
java-version: 20
distribution: temurin
- name: Setup latest Node.js
uses: actions/setup-node@v3
with:
node-version: latest
# Similar to the linting/spotless workflow,
# we will use the 'Noelware/setup-protoc' action to obtain protoc,
# and pass in the `CHARTED_PROTOC` environment variable.
- name: Setup protoc
uses: Noelware/setup-protoc@1.1.0
id: protoc
with:
repo-token: ${{secrets.GITHUB_TOKEN}}
- name: Update GitHub env
run: echo "CHARTED_PROTOC_PATH=${{steps.protoc.outputs.binary}}" >> $GITHUB_ENV
- name: Init CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{matrix.languages}}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Analyze
uses: github/codeql-action/analyze@v2
qodana:
name: Qodana
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Perform Qodana scan
uses: JetBrains/qodana-action@v2023.2.1
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
args: --baseline,qodana.sarif.json,--save-report
- name: Upload Sarif Results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{runner.temp}}/qodana/results/qodana.sarif.json