Skip to content

Commit fb63231

Browse files
committed
feat(config): add uid to process config
1 parent 2a3c373 commit fb63231

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

qodana.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#-------------------------------------------------------------------------------#
2+
# Qodana analysis is configured by qodana.yaml file #
3+
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
4+
#-------------------------------------------------------------------------------#
5+
version: "1.0"
6+
7+
#Specify inspection profile for code analysis
8+
profile:
9+
name: qodana.starter
10+
11+
#Enable inspections
12+
#include:
13+
# - name: <SomeEnabledInspectionId>
14+
15+
#Disable inspections
16+
#exclude:
17+
# - name: <SomeDisabledInspectionId>
18+
# paths:
19+
# - <path/where/not/run/inspection>
20+
21+
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
22+
#bootstrap: sh ./prepare-qodana.sh
23+
24+
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
25+
#plugins:
26+
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
27+
28+
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
29+
linter: jetbrains/qodana-go:latest

util/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ type ConfigLog struct {
155155

156156
type ConfigProcess struct {
157157
User string `json:"user,omitempty" env:"SEMAPHORE_PROCESS_USER"`
158+
UID *int `json:"uid,omitempty" env:"SEMAPHORE_PROCESS_UID"`
158159
Chroot string `json:"chroot,omitempty" env:"SEMAPHORE_PROCESS_CHROOT"`
159160
}
160161

0 commit comments

Comments
 (0)