removed scheduling from codeql and fixed an alert

This commit is contained in:
Nirav Parikh
2022-06-27 13:13:44 +05:30
parent 5cd15cbd8e
commit 58e83c42a3
2 changed files with 5 additions and 3 deletions
-2
View File
@@ -17,8 +17,6 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '30 16 * * 0'
jobs:
analyze:
+5 -1
View File
@@ -418,7 +418,11 @@ func (s *clusterService) prepareClusterResponse(ctx context.Context, clstr *infr
ModifiedAt: timestamppb.New(c.ModifiedAt),
}
sm, _ := strconv.Atoi(c.ShareMode)
smv, _ := strconv.ParseInt(c.ShareMode, 10, 32)
if err != nil {
_log.Infow("unable to convert value, ", err.Error())
}
sm := int32(smv)
var proxy infrav3.ProxyConfig
if c.ProxyConfig != nil {
json.Unmarshal(c.ProxyConfig, &proxy)