Do not alter secret key upper-/lowercase (#3375)

This commit is contained in:
qwerty287
2024-02-20 14:20:25 +01:00
committed by GitHub
parent cee890d359
commit 0c9bbf91a3
5 changed files with 12 additions and 8 deletions

View File

@@ -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,