fix: 修复GitHub Actions gosec action不存在的问题 #4
ci.yml
on: push
Lint
30s
Security Scan
14s
Matrix: Test
Annotations
21 errors and 6 warnings
|
Security Scan
Process completed with exit code 1.
|
|
Lint:
internal/handlers/storage.go#L146
cyclomatic complexity 22 of func `(*StorageHandler).UpdateStorageConfig` is high (> 15) (gocyclo)
|
|
Lint:
internal/config/config.go#L320
cyclomatic complexity 40 of func `(*Config).LoadFromDatabase` is high (> 15) (gocyclo)
|
|
Lint:
internal/storage/local_strategy.go#L97
string `/share/download` has 3 occurrences, make it a constant (goconst)
|
|
Lint:
internal/handlers/storage.go#L186
Error return value of `sh.storageManager.ReconfigureWebDAV` is not checked (errcheck)
|
|
Lint:
internal/handlers/share.go#L140
Error return value of `h.service.UpdateFileUsage` is not checked (errcheck)
|
|
Lint:
internal/services/share_test.go#L21
Error return value of `db.AutoMigrate` is not checked (errcheck)
|
|
Lint:
internal/services/share.go#L143
Error return value of `rand.Read` is not checked (errcheck)
|
|
Lint:
internal/tasks/tasks.go#L39
Error return value of `tm.cron.AddFunc` is not checked (errcheck)
|
|
Lint:
internal/tasks/tasks.go#L36
Error return value of `tm.cron.AddFunc` is not checked (errcheck)
|
|
Lint:
internal/storage/local_strategy.go#L25
Error return value of `os.MkdirAll` is not checked (errcheck)
|
|
Test (1.23)
Cannot open: File exists
|
|
Test (1.23)
Cannot open: File exists
|
|
Test (1.23)
Cannot open: File exists
|
|
Test (1.23)
Cannot open: File exists
|
|
Test (1.23)
Cannot open: File exists
|
|
Test (1.23)
Cannot open: File exists
|
|
Test (1.23)
Cannot open: File exists
|
|
Test (1.23)
Cannot open: File exists
|
|
Test (1.23)
Cannot open: File exists
|
|
Test (1.23)
Cannot open: File exists
|
|
Security Scan
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
|
Lint
Failed to save: <h2>Our services aren't available right now</h2><p>We're working to restore all services as soon as possible. Please check back soon.</p>0UIWyaAAAAAA93U94+EtqQIcyWOXqUvdcQkwyQUEyMDMwMTA2MDQ3AEVkZ2U=
|
|
Lint
Failed to restore: Cache service responded with 400
|
|
Lint
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
|
Test (1.23)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
|
Test (1.23)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|