Skip to content

Commit

Permalink
Call reusable action for go version updates (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaynafinocchiaro authored Oct 7, 2024
1 parent c1c4169 commit 69f08f1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: |
go mod vendor
- name: golangci-lint
uses: golangci/golangci-lint-action@v5
uses: golangci/golangci-lint-action@v6
with:
version: latest
skip-cache: true
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/go-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0

# Reusable workflow to perform go version update on Golang based projects
name: Go Version Update

on:
workflow_dispatch:
repository_dispatch:
types: [go-update-workflow]

jobs:
# go version update
go-version-update:
uses: dell/common-github-actions/.github/workflows/go-version-workflow.yaml@main
name: Go Version Update
secrets: inherit
2 changes: 1 addition & 1 deletion pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func New(level int, formatter string) {
logrusInstance.SetLevel(logrus.Level(defaultLevel))

if level >= minLevel || level <= maxLevel {
logrusInstance.SetLevel(logrus.Level(level))
logrusInstance.SetLevel(logrus.Level(uint32(level))) // #nosec G115
}

switch formatter {
Expand Down

0 comments on commit 69f08f1

Please sign in to comment.