You've already forked docker-hub-description-updater
							
							fix(lint): be compliant with golangci-lint
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 20s
				
			
		
			
				
	
				Lint Markdown files / Run markdown linter (push) Successful in 3s
				
			
		
			
				
	
				Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Successful in 35s
				
			
		
			
				
	
				Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 1m3s
				
			
		
			
				
	
				Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 19s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 20s
				
			Lint Markdown files / Run markdown linter (push) Successful in 3s
				
			Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Successful in 35s
				
			Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 1m3s
				
			Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 19s
				
			This commit is contained in:
		| @@ -2,7 +2,6 @@ package cmd | ||||
|  | ||||
| import ( | ||||
| 	"fmt" | ||||
| 	"io/ioutil" | ||||
| 	"log" | ||||
| 	"os" | ||||
|  | ||||
| @@ -59,7 +58,8 @@ func runE(cmd *cobra.Command, args []string) error { | ||||
| 		return fmt.Errorf("can not find file: %v", file) | ||||
| 	} | ||||
|  | ||||
| 	f, err := ioutil.ReadFile(file) | ||||
| 	// #nosec G304 | ||||
| 	f, err := os.ReadFile(file) | ||||
| 	if err != nil { | ||||
| 		return fmt.Errorf("can not read file %v: %v", file, err) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user