mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 17:23:22 +00:00
Do not alter secret key upper-/lowercase (#3375)
This commit is contained in:
@@ -16,7 +16,6 @@ package api
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
@@ -68,7 +67,7 @@ func PostSecret(c *gin.Context) {
|
||||
}
|
||||
secret := &model.Secret{
|
||||
RepoID: repo.ID,
|
||||
Name: strings.ToLower(in.Name),
|
||||
Name: in.Name,
|
||||
Value: in.Value,
|
||||
Events: in.Events,
|
||||
Images: in.Images,
|
||||
|
Reference in New Issue
Block a user