mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
support for secrets
Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
bdb0c35ba3
commit
0094b96051
14 changed files with 708 additions and 9 deletions
|
@ -272,9 +272,8 @@ func (rc *RunContext) vmRunner() func(*otto.Otto) {
|
|||
}
|
||||
|
||||
func (rc *RunContext) vmSecrets() func(*otto.Otto) {
|
||||
secrets := make(map[string]string)
|
||||
return func(vm *otto.Otto) {
|
||||
_ = vm.Set("secrets", secrets)
|
||||
_ = vm.Set("secrets", rc.Config.Secrets)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue