Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update go to 1.22.x #239

Merged
merged 2 commits into from Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 1 addition & 10 deletions .github/workflows/ci.yml
Expand Up @@ -12,21 +12,12 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

- name: Set up Go 1.21
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: './go.mod'
check-latest: true

- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: Setup Bats and bats libs
uses: bats-core/bats-action@0ae349dad1aa69308725a48b91b5d6ca647040bc # v1.5.6

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify.yaml
Expand Up @@ -40,4 +40,4 @@ jobs:
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
timeout-minutes: 5
with:
version: v1.55
version: v1.56
2 changes: 1 addition & 1 deletion cmd/search.go
Expand Up @@ -33,7 +33,7 @@ func NewSearchCmd() *cobra.Command {
searchCmd := &cobra.Command{
Use: "search [PATH_TO_PACKAGED_CHART]",
Short: "Search for a Signed Helm Chart",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
if len(args) != 1 {
return errors.New("1 argument (Path to packaged chart) is required")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/upload.go
Expand Up @@ -36,7 +36,7 @@ func NewUploadCmd() *cobra.Command {
uploadCmd := &cobra.Command{
Use: "upload [PATH_TO_PACKAGED_CHART]",
Short: "Upload Signed Helm Chart",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
if len(args) != 1 {
return errors.New("1 argument (Path to packaged chart) is required")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/verify.go
Expand Up @@ -42,7 +42,7 @@ func NewVerifyCmd() *cobra.Command {
verifyCmd := &cobra.Command{
Use: "verify [PATH_TO_PACKAGED_CHART]",
Short: "Verify a Signed Helm Chart",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
if len(args) != 1 {
return errors.New("1 argument (Path to packaged chart) is required")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Expand Up @@ -53,7 +53,7 @@ func NewVersionCmd() *cobra.Command {
versionCmd := &cobra.Command{
Use: "version",
Short: "Print version details",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
return runVersion(versionOpts)
},
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/sigstore/helm-sigstore

go 1.21
go 1.22

require (
github.com/go-openapi/runtime v0.28.0
Expand Down