Converting all inputs which are coming as secret to lowercase (#1276)

Closes #926

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
Avinil Bedarkar
2022-10-16 18:28:13 +05:30
committed by GitHub
parent 711f12ed27
commit 11f37f4649
5 changed files with 34 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ package api
import (
"net/http"
"strings"
"github.com/gin-gonic/gin"
@@ -50,7 +51,7 @@ func PostSecret(c *gin.Context) {
}
secret := &model.Secret{
RepoID: repo.ID,
Name: in.Name,
Name: strings.ToLower(in.Name),
Value: in.Value,
Events: in.Events,
Images: in.Images,