Skip to content

Commit

Permalink
(ci:fix) linting error on G115
Browse files Browse the repository at this point in the history
  • Loading branch information
olegsu committed Feb 18, 2025
1 parent 3c337fa commit a22f570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev-tools/mage/pkgtypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ func addFileToTar(ar *tar.Writer, baseDir string, pkgFile PackageFile) error {
}

if mg.Verbose() {
log.Println("Adding", os.FileMode(header.Mode), header.Name)
log.Println("Adding", os.FileMode(uint32(header.Mode)), header.Name)

Check failure on line 972 in dev-tools/mage/pkgtypes.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

G115: integer overflow conversion int64 -> uint32 (gosec)
}
if err := ar.WriteHeader(header); err != nil {
return err
Expand Down Expand Up @@ -1037,7 +1037,7 @@ func addSymlinkToTar(tmpdir string, ar *tar.Writer, baseDir string, pkgFile Pack
header.Typeflag = tar.TypeSymlink

if mg.Verbose() {
log.Println("Adding", os.FileMode(header.Mode), header.Name)
log.Println("Adding", os.FileMode(uint32(header.Mode)), header.Name)

Check failure on line 1040 in dev-tools/mage/pkgtypes.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

G115: integer overflow conversion int64 -> uint32 (gosec)
}
if err := ar.WriteHeader(header); err != nil {
return err
Expand Down

0 comments on commit a22f570

Please sign in to comment.