Skip to content

Commit

Permalink
[chore] Upgrade golang from 1.22.11 to 1.22.12 (#37751)
Browse files Browse the repository at this point in the history
#### Description
[Vulnerability
scans](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/13184143287/job/36802088446?pr=37749)
are detecting [GO-2025-3447](https://pkg.go.dev/vuln/GO-2025-3447) in
our runs. This upgrades the test environment to run 1.22.12, the fixed
version.
  • Loading branch information
crobert-1 authored Feb 6, 2025
1 parent e296b0f commit a25a5fd
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "~1.22.11"
go-version: "~1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "~1.22.11"
go-version: "~1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "~1.22.11"
go-version: "~1.22.12"
cache: false
- name: Install Tools
if: steps.go-cache.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
run: Install-WindowsFeature -name Web-Server -IncludeManagementTools
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-mod-cache
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand All @@ -188,7 +188,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: ["1.23.0", "1.22.11"] # 1.20 is interpreted as 1.2 without quotes
go-version: ["1.23.0", "1.22.12"] # 1.20 is interpreted as 1.2 without quotes
runner: [ubuntu-24.04]
group:
- receiver-0
Expand Down Expand Up @@ -367,7 +367,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -406,7 +406,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand All @@ -433,7 +433,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -505,7 +505,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -555,7 +555,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Mkdir bin and dist
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-codeowners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false

- name: Cache Go Tools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false

# Initializes the CodeQL tools for scanning.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ~1.22.11
go-version: ~1.22.12
cache: false
- name: Cache Go
uses: actions/cache@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
path: opentelemetry-collector-contrib
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Prepare release for contrib
working-directory: opentelemetry-collector-contrib
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prometheus-compliance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
path: opentelemetry-collector-contrib
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scoped-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false

- name: Try to restore go-cache
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/telemetrygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tidy-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
ref: ${{ github.head_ref }}
- uses: actions/setup-go@v5
with:
go-version: "1.22.11"
go-version: "1.22.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down

0 comments on commit a25a5fd

Please sign in to comment.