1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-15 07:35:11 +00:00

ci/cd: add basic static analysis for backend (#389)

This commit is contained in:
Rich
2025-03-27 08:13:56 -07:00
committed by GitHub
parent 4d049bbe24
commit 4ac1196d8d
8 changed files with 67 additions and 9 deletions

View File

@@ -124,7 +124,7 @@ func (s *GeoLiteService) updateDatabase() error {
log.Println("Updating GeoLite2 City database...")
downloadUrl := fmt.Sprintf(common.EnvConfig.GeoLiteDBUrl, common.EnvConfig.MaxMindLicenseKey)
// Download the database tar.gz file
// Download the database tar.gz file nolint:gosec
resp, err := http.Get(downloadUrl)
if err != nil {
return fmt.Errorf("failed to download database: %w", err)