Skip to content

chore: introduce flags helper for consistency #1827

chore: introduce flags helper for consistency

chore: introduce flags helper for consistency #1827

Triggered via pull request July 7, 2025 14:48
Status Failure
Total duration 1m 29s
Artifacts

main.yaml

on: pull_request
goreleaser
0s
goreleaser
binary-provenance  /  detect-env
binary-provenance / detect-env
image-provenance  /  detect-env
image-provenance / detect-env
binary-provenance  /  generator
binary-provenance / generator
image-provenance  /  generator
image-provenance / generator
binary-provenance  /  upload-assets
binary-provenance / upload-assets
image-provenance  /  final
image-provenance / final
binary-provenance  /  final
binary-provenance / final
verification-with-cosign
verification-with-cosign
verification-with-slsa-verifier
verification-with-slsa-verifier
Fit to window
Zoom out
Zoom in

Annotations

22 errors and 1 warning
Test Release Process
The process '/opt/hostedtoolcache/goreleaser-action/2.10.2/x64/goreleaser' failed with exit code 1
Test Release Process
Cannot open: File exists
Test Release Process
Cannot open: File exists
Test Release Process
Cannot open: File exists
Test Release Process
Cannot open: File exists
Test Release Process
Cannot open: File exists
Test Release Process
Cannot open: File exists
Test Release Process
Cannot open: File exists
Test Release Process
Cannot open: File exists
Test Release Process
Cannot open: File exists
Test Release Process
Cannot open: File exists
Lints: internal/flags/flags_test.go#L30
Function TestSetFlagRequired_NonPersistent_FlagNotFound missing the call to method parallel (paralleltest)
Lints: internal/flags/flags_test.go#L21
Function TestSetFlagRequired_Persistent_Success missing the call to method parallel (paralleltest)
Lints: internal/flags/flags_test.go#L12
Function TestSetFlagRequired_NonPersistent_Success missing the call to method parallel (paralleltest)
Lints: internal/authorizationmodel/model.go#L271
avoid inline error handling using `if err := ...; err != nil`; use plain assignment `err := ...` (noinlineerr)
Lints: internal/authorizationmodel/model.go#L265
avoid inline error handling using `if err := ...; err != nil`; use plain assignment `err := ...` (noinlineerr)
Lints: internal/authorizationmodel/model.go#L115
avoid inline error handling using `if err := ...; err != nil`; use plain assignment `err := ...` (noinlineerr)
Lints: cmd/query/list-users.go#L142
The line is 139 characters long, which exceeds the maximum of 120 characters. (lll)
Lints: internal/flags/flags.go#L24
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(flagRequiredErrorMsg, flag, location, err)" (err113)
Lints: internal/flags/flags.go#L20
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(flagRequiredErrorMsg, flag, location, err)" (err113)
Lints: internal/flags/flags_test.go#L7
import 'github.com/spf13/cobra' is not allowed from list 'test' (depguard)
Tests
Process completed with exit code 2.
Test Release Process
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2