Skip to content

Commit d23a0a7

Browse files
fix: update Go version (#124)
* fix: update Go version * chore: upgraded dependencies * chore: more updates * chore: codeql * chore: override go in security scan
1 parent ab1e4ea commit d23a0a7

File tree

8 files changed

+169
-170
lines changed

8 files changed

+169
-170
lines changed

Diff for: .github/workflows/build.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ jobs:
5252
uses: actions/checkout@v4
5353

5454
- id: go
55-
name: "Set up Go 1.21"
55+
name: "Set up Go 1.22"
5656
uses: actions/setup-go@v4
5757
with:
58-
go-version: '1.21'
58+
go-version: '1.22'
5959

6060

6161
- name: create
@@ -84,10 +84,10 @@ jobs:
8484

8585

8686
- id: go
87-
name: "Set up Go 1.21"
87+
name: "Set up Go 1.22"
8888
uses: actions/setup-go@v4
8989
with:
90-
go-version: '1.21'
90+
go-version: '1.22'
9191

9292
-
9393
name: create
@@ -114,10 +114,10 @@ jobs:
114114

115115

116116
- id: go
117-
name: "Set up Go 1.21"
117+
name: "Set up Go 1.22"
118118
uses: actions/setup-go@v4
119119
with:
120-
go-version: '1.21'
120+
go-version: '1.22'
121121

122122
-
123123
name: create
@@ -148,10 +148,10 @@ jobs:
148148
cache: 'npm'
149149

150150
- id: go
151-
name: "Set up Go 1.21"
151+
name: "Set up Go 1.22"
152152
uses: actions/setup-go@v4
153153
with:
154-
go-version: '1.21'
154+
go-version: '1.22'
155155

156156
-
157157
name: create
@@ -179,10 +179,10 @@ jobs:
179179
uses: actions/checkout@v4
180180

181181
- id: go
182-
name: "Set up Go 1.21"
182+
name: "Set up Go 1.22"
183183
uses: actions/setup-go@v4
184184
with:
185-
go-version: '1.21'
185+
go-version: '1.22'
186186

187187
- name: create
188188
run: |
@@ -205,7 +205,7 @@ jobs:
205205
- name: Set up Go
206206
uses: actions/setup-go@v4
207207
with:
208-
go-version: '1.21'
208+
go-version: '1.22'
209209
check-latest: true
210210
id: go
211211

@@ -229,7 +229,7 @@ jobs:
229229

230230
- name: Login to GHCR
231231
if: ${{ needs.next-version.outputs.version != ''}}
232-
uses: docker/login-action@v1
232+
uses: docker/login-action@v3.1.0
233233
with:
234234
registry: ghcr.io
235235
username: ${{ github.repository_owner }}

Diff for: .github/workflows/codeql-analysis.yml

+12-5
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,30 @@ jobs:
2424

2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828
with:
2929
# We must fetch at least the immediate parents so that if this is
3030
# a pull request then we can checkout the head.
3131
fetch-depth: 2
3232

33+
- name: Set up Go
34+
uses: actions/setup-go@v4
35+
with:
36+
go-version: '1.22'
37+
check-latest: true
38+
id: go
39+
3340
# Initializes the CodeQL tools for scanning.
3441
- name: Initialize CodeQL
35-
uses: github/codeql-action/init@v2
42+
uses: github/codeql-action/init@v3
3643
# Override language selection by uncommenting this and choosing your languages
3744
with:
3845
languages: go
3946

4047
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4148
# If this step fails, then you should remove it and run the build manually (see below)
4249
- name: Autobuild
43-
uses: github/codeql-action/autobuild@v2
50+
uses: github/codeql-action/autobuild@v3
4451

4552
# ℹ️ Command-line programs to run using the OS shell.
4653
# 📚 https://git.io/JvXDl
@@ -54,10 +61,10 @@ jobs:
5461
# make release
5562

5663
- name: Perform CodeQL Analysis
57-
uses: github/codeql-action/analyze@v2
64+
uses: github/codeql-action/analyze@v3
5865

5966
- name: Upload CodeQL results
60-
uses: actions/upload-artifact@v2
67+
uses: actions/upload-artifact@v4.3.3
6168
with:
6269
name: codeql-results
6370
path: /home/runner/work/go-lambda-cleanup/results/go.sarif

Diff for: .github/workflows/pull_request.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
- name: Set up Go
3333
uses: actions/setup-go@v4
3434
with:
35-
go-version: '1.21'
35+
go-version: '1.22'
3636
check-latest: true
3737
id: go
3838

3939
- name: Check out code into the Go module directory
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141

4242

4343
- name: Generate AWS region file
@@ -48,15 +48,15 @@ jobs:
4848
aws ec2 describe-regions --all-regions --region us-east-1 --query "Regions[].RegionName" --output text >> cmd/aws-regions.txt
4949
5050
- name: Run golangci-lint
51-
uses: golangci/golangci-lint-action@v3
51+
uses: golangci/golangci-lint-action@v5.2.0
5252
with:
5353
args: -v
5454

5555
- name: Execute Go tests
5656
run: make tests-coverage
5757

5858
- name: Codecov Upload
59-
uses: codecov/codecov-action@v3.1.4
59+
uses: codecov/codecov-action@v4.3.1
6060
env:
6161
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6262

@@ -86,7 +86,7 @@ jobs:
8686

8787

8888
- name: Login to GHCR
89-
uses: docker/login-action@v1
89+
uses: docker/login-action@v3.1.0
9090
with:
9191
registry: ghcr.io
9292
username: ${{ github.repository_owner }}

Diff for: .github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Go
1515
uses: actions/setup-go@v4
1616
with:
17-
go-version: '1.21'
17+
go-version: '1.22'
1818
check-latest: true
1919
id: go
2020

@@ -29,7 +29,7 @@ jobs:
2929
aws ec2 describe-regions --all-regions --region us-east-1 --query "Regions[].RegionName" --output text >> cmd/aws-regions.txt
3030
3131
- name: Run golangci-lint
32-
uses: golangci/golangci-lint-action@v3
32+
uses: golangci/golangci-lint-action@v5.2.0
3333
with:
3434
args: -v
3535

Diff for: Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) karl-cardenas-coding
22
# SPDX-License-Identifier: MIT
33

4-
FROM golang:1.21.6-alpine3.19 as builder
4+
FROM golang:1.22.2-alpine3.19 as builder
55

66
LABEL org.opencontainers.image.source="http://github.com/karl-cardenas-coding/go-lambda-cleanup"
77
LABEL org.opencontainers.image.description "A solution for removing previous versions of AWS Lambdas"

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
go-lambda-cleanup is distributed as a single binary. [Download](https://github.com/karl-cardenas-coding/go-lambda-cleanup/releases) the binary and install go-lambda-cleanup in a directory in your system's [PATH](https://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them). `/usr/local/bin` is the recommended path for UNIX/LINUX environments.
2323

2424
```shell
25-
VERSION=2.0.12
25+
VERSION=2.0.13
2626
wget https://github.com/karl-cardenas-coding/go-lambda-cleanup/releases/download/v$VERSION/go-lambda-cleanup-v$VERSION-linux-amd64.zip
2727
unzip go-lambda-cleanup-v$VERSION-linux-amd64.zip
2828
sudo mv glc /usr/local/bin/
@@ -33,7 +33,7 @@ sudo mv glc /usr/local/bin/
3333
go-lambda-cleanup is also available as a Docker image. Check out the [GitHub Packages](https://github.com/karl-cardenas-coding/go-lambda-cleanup/pkgs/container/go-lambda-cleanup) page for this repository to learn more about the available images.
3434

3535
```
36-
VERSION=2.0.12
36+
VERSION=2.0.13
3737
docker pull ghcr.io/karl-cardenas-coding/go-lambda-cleanup:$VERSION
3838
```
3939

@@ -289,7 +289,7 @@ on:
289289
# At 04:00 on every day
290290
- cron: '0 04 * * *'
291291
env:
292-
VERSION: 2.0.12
292+
VERSION: 2.0.13
293293

294294
jobs:
295295
build:

Diff for: go.mod

+44-45
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,82 @@
11
module github.com/karl-cardenas-coding/go-lambda-cleanup/v2
22

3-
go 1.21
3+
go 1.22
44

55
require (
6-
github.com/aws/aws-sdk-go-v2 v1.24.1
7-
github.com/aws/aws-sdk-go-v2/config v1.26.6
8-
github.com/aws/aws-sdk-go-v2/credentials v1.16.16
9-
github.com/aws/aws-sdk-go-v2/service/lambda v1.49.7
6+
github.com/aws/aws-sdk-go-v2 v1.26.1
7+
github.com/aws/aws-sdk-go-v2/config v1.27.11
8+
github.com/aws/aws-sdk-go-v2/credentials v1.17.11
9+
github.com/aws/aws-sdk-go-v2/service/lambda v1.54.0
1010
github.com/docker/go-connections v0.5.0
1111
github.com/dustin/go-humanize v1.0.1
1212
github.com/hashicorp/go-version v1.6.0
1313
github.com/sirupsen/logrus v1.9.3
1414
github.com/spf13/cobra v1.8.0
15-
github.com/testcontainers/testcontainers-go v0.27.0
16-
github.com/testcontainers/testcontainers-go/modules/localstack v0.27.0
15+
github.com/testcontainers/testcontainers-go v0.30.0
16+
github.com/testcontainers/testcontainers-go/modules/localstack v0.30.0
1717
gopkg.in/yaml.v2 v2.4.0
1818
)
1919

2020
require (
2121
dario.cat/mergo v1.0.0 // indirect
2222
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
23-
github.com/Microsoft/go-winio v0.6.1 // indirect
24-
github.com/Microsoft/hcsshim v0.11.4 // indirect
25-
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.4 // indirect
26-
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.11 // indirect
27-
github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.10 // indirect
28-
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.10 // indirect
29-
github.com/aws/aws-sdk-go-v2/internal/ini v1.7.3 // indirect
30-
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.4 // indirect
31-
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.10 // indirect
32-
github.com/aws/aws-sdk-go-v2/service/sso v1.18.7 // indirect
33-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.7 // indirect
34-
github.com/aws/aws-sdk-go-v2/service/sts v1.26.7 // indirect
35-
github.com/aws/smithy-go v1.19.0 // indirect
36-
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
37-
github.com/containerd/containerd v1.7.13 // indirect
23+
github.com/Microsoft/go-winio v0.6.2 // indirect
24+
github.com/Microsoft/hcsshim v0.12.3 // indirect
25+
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 // indirect
26+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 // indirect
27+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 // indirect
28+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5 // indirect
29+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
30+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect
31+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7 // indirect
32+
github.com/aws/aws-sdk-go-v2/service/sso v1.20.5 // indirect
33+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4 // indirect
34+
github.com/aws/aws-sdk-go-v2/service/sts v1.28.6 // indirect
35+
github.com/aws/smithy-go v1.20.2 // indirect
36+
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
37+
github.com/containerd/containerd v1.7.16 // indirect
3838
github.com/containerd/log v0.1.0 // indirect
3939
github.com/cpuguy83/dockercfg v0.3.1 // indirect
40-
github.com/distribution/reference v0.5.0 // indirect
41-
github.com/docker/docker v25.0.2+incompatible // indirect
40+
github.com/distribution/reference v0.6.0 // indirect
41+
github.com/docker/docker v26.1.1+incompatible // indirect
4242
github.com/docker/go-units v0.5.0 // indirect
4343
github.com/felixge/httpsnoop v1.0.4 // indirect
4444
github.com/go-logr/logr v1.4.1 // indirect
4545
github.com/go-logr/stdr v1.2.2 // indirect
4646
github.com/go-ole/go-ole v1.3.0 // indirect
4747
github.com/gogo/protobuf v1.3.2 // indirect
48-
github.com/golang/protobuf v1.5.3 // indirect
4948
github.com/google/uuid v1.6.0 // indirect
5049
github.com/inconshreveable/mousetrap v1.1.0 // indirect
5150
github.com/jmespath/go-jmespath v0.4.0 // indirect
52-
github.com/klauspost/compress v1.17.5 // indirect
53-
github.com/kr/text v0.2.0 // indirect
54-
github.com/lufia/plan9stats v0.0.0-20231016141302-07b5767bb0ed // indirect
51+
github.com/klauspost/compress v1.17.8 // indirect
52+
github.com/lufia/plan9stats v0.0.0-20240408141607-282e7b5d6b74 // indirect
5553
github.com/magiconair/properties v1.8.7 // indirect
54+
github.com/moby/docker-image-spec v1.3.1 // indirect
5655
github.com/moby/patternmatcher v0.6.0 // indirect
5756
github.com/moby/sys/sequential v0.5.0 // indirect
5857
github.com/moby/sys/user v0.1.0 // indirect
5958
github.com/moby/term v0.5.0 // indirect
6059
github.com/morikuni/aec v1.0.0 // indirect
6160
github.com/opencontainers/go-digest v1.0.0 // indirect
62-
github.com/opencontainers/image-spec v1.1.0-rc6 // indirect
61+
github.com/opencontainers/image-spec v1.1.0 // indirect
6362
github.com/pkg/errors v0.9.1 // indirect
64-
github.com/power-devops/perfstat v0.0.0-20221212215047-62379fc7944b // indirect
65-
github.com/shirou/gopsutil/v3 v3.24.1 // indirect
63+
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
64+
github.com/shirou/gopsutil/v3 v3.24.4 // indirect
6665
github.com/shoenig/go-m1cpu v0.1.6 // indirect
6766
github.com/spf13/pflag v1.0.5 // indirect
68-
github.com/tklauser/go-sysconf v0.3.13 // indirect
69-
github.com/tklauser/numcpus v0.7.0 // indirect
67+
github.com/tklauser/go-sysconf v0.3.14 // indirect
68+
github.com/tklauser/numcpus v0.8.0 // indirect
7069
github.com/yusufpapurcu/wmi v1.2.4 // indirect
71-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect
72-
go.opentelemetry.io/otel v1.22.0 // indirect
73-
go.opentelemetry.io/otel/metric v1.22.0 // indirect
74-
go.opentelemetry.io/otel/trace v1.22.0 // indirect
75-
golang.org/x/exp v0.0.0-20240119083558-1b970713d09a // indirect
76-
golang.org/x/mod v0.14.0 // indirect
77-
golang.org/x/sys v0.16.0 // indirect
78-
golang.org/x/tools v0.17.0 // indirect
79-
google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917 // indirect
80-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect
81-
google.golang.org/grpc v1.61.0 // indirect
82-
google.golang.org/protobuf v1.32.0 // indirect
70+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0 // indirect
71+
go.opentelemetry.io/otel v1.26.0 // indirect
72+
go.opentelemetry.io/otel/metric v1.26.0 // indirect
73+
go.opentelemetry.io/otel/trace v1.26.0 // indirect
74+
golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f // indirect
75+
golang.org/x/mod v0.17.0 // indirect
76+
golang.org/x/net v0.24.0 // indirect
77+
golang.org/x/sys v0.20.0 // indirect
78+
google.golang.org/genproto/googleapis/api v0.0.0-20240429193739-8cf5692501f6 // indirect
79+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240429193739-8cf5692501f6 // indirect
80+
google.golang.org/grpc v1.63.2 // indirect
81+
google.golang.org/protobuf v1.34.0 // indirect
8382
)

0 commit comments

Comments
 (0)