Skip to content

Commit 7e125e1

Browse files
committed
Bump to go1.24.1
Signed-off-by: Alvaro Neira Ayuso <[email protected]>
1 parent 0d9cfaf commit 7e125e1

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
matrix:
3939
go: ${{ fromJSON(needs.load-versions.outputs.go_version_list) }}
4040
os: [ubuntu-latest]
41-
golangci-lint: ["1.62.2"]
42-
gosec: ["2.19.0"]
41+
golangci-lint: ["1.64.8"]
42+
gosec: ["2.22.2"]
4343
steps:
4444
- name: Set up Go 1.x
4545
uses: actions/[email protected]

.golangci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ linters:
215215
#- errorlint # finds code that will cause problems with the error wrapping scheme introduced in Go 1.13
216216
#- execinquery # checks query string in Query function which reads your Go src files and warning it finds
217217
- exhaustive # checks exhaustiveness of enum switch statements
218-
- exportloopref # checks for pointers to enclosing loop variables
218+
#- exportloopref # checks for pointers to enclosing loop variables
219219
#- forbidigo # forbids identifiers
220220
#- funlen # tool for detection of long functions
221221
#- gochecknoinits # checks that no init functions are present in Go code

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/bitnami-labs/sealed-secrets
22

3-
go 1.23.7
3+
go 1.24.1
44

55
require (
66
github.com/Masterminds/sprig/v3 v3.3.0

pkg/crypto/crypto.go

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func HybridEncrypt(rnd io.Reader, pubKey *rsa.PublicKey, plaintext, label []byte
5959
// First 2 bytes are RSA ciphertext length, so we can separate
6060
// all the pieces later.
6161
ciphertext := make([]byte, 2)
62+
// #nosec G115
6263
binary.BigEndian.PutUint16(ciphertext, uint16(len(rsaCiphertext)))
6364
ciphertext = append(ciphertext, rsaCiphertext...)
6465

pkg/crypto/keys_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func testRand() io.Reader {
1717
func TestSignKey(t *testing.T) {
1818
rand := testRand()
1919

20-
key, err := rsa.GenerateKey(rand, 512)
20+
key, err := rsa.GenerateKey(rand, 2048)
2121
if err != nil {
2222
t.Fatalf("Failed to generate test key: %v", err)
2323
}

versions.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
GO_VERSION=1.23.7
1+
GO_VERSION=1.24.1
22
GO_VERSION_LIST="[\"$GO_VERSION\"]"

0 commit comments

Comments
 (0)