feat: add config for runner auth with client certificates (gitea/act_runner#321)

This commit is contained in:
Ryan Budhu
2024-07-22 11:58:25 -04:00
parent 8c8a8ce401
commit 8e4e70b177
7 changed files with 86 additions and 11 deletions

View File

@@ -25,6 +25,10 @@ runner:
timeout: 3h
# Whether skip verifying the TLS certificate of the Gitea instance.
insecure: false
# Specifies the path to the client certificate for Gitea autentication.
clientcert: ""
# Specifies the path to the client key for Gitea autentication.
clientkey: ""
# The timeout for fetching the job from the Gitea instance.
fetch_timeout: 5s
# The interval for fetching the job from the Gitea instance.

View File

@@ -27,6 +27,8 @@ type Runner struct {
EnvFile string `yaml:"env_file"` // EnvFile specifies the path to the file containing environment variables for the runner.
Timeout time.Duration `yaml:"timeout"` // Timeout specifies the duration for runner timeout.
Insecure bool `yaml:"insecure"` // Insecure indicates whether the runner operates in an insecure mode.
Clientcert string `yaml:"clientcert"` // Clientcert specifies the path to the client certificate for autentication.
Clientkey string `yaml:"clientkey"` // Clientkey specifies the path to the client key for authentication.
FetchTimeout time.Duration `yaml:"fetch_timeout"` // FetchTimeout specifies the timeout duration for fetching resources.
FetchInterval time.Duration `yaml:"fetch_interval"` // FetchInterval specifies the interval duration for fetching resources.
Labels []string `yaml:"labels"` // Labels specifies the labels of the runner. Labels are declared on each startup