Skip to content

Commit d320928

Browse files
authored
chore: upgrade Go to 1.26.0 (#190)
1 parent e89fbe6 commit d320928

File tree

14 files changed

+79
-35
lines changed

14 files changed

+79
-35
lines changed

.github/actions/chainsaw/action.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,19 @@ runs:
3838

3939
- name: Install Chainsaw
4040
shell: bash
41-
run: go install github.com/kyverno/chainsaw@${{ inputs.chainsaw_version }}
41+
run: |
42+
set -euo pipefail
43+
VERSION="${{ inputs.chainsaw_version }}"
44+
VERSION="${VERSION#v}"
45+
TAR="chainsaw_linux_amd64.tar.gz"
46+
URL="https://github.com/kyverno/chainsaw/releases/download/v${VERSION}/${TAR}"
47+
TMP="$(mktemp -d)"
48+
curl -fsSL -o "${TMP}/${TAR}" "${URL}"
49+
tar -xzf "${TMP}/${TAR}" -C "${TMP}"
50+
sudo mv "${TMP}/chainsaw" /usr/local/bin/chainsaw
51+
sudo chmod +x /usr/local/bin/chainsaw
52+
rm -rf "${TMP}"
53+
chainsaw version
4254
4355
- name: Build aicr binary
4456
shell: bash

.github/actions/integration/action.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,18 @@ runs:
7272
- name: Install Chainsaw
7373
shell: bash
7474
run: |
75-
go install github.com/kyverno/chainsaw@${{ inputs.chainsaw_version }}
75+
set -euo pipefail
76+
VERSION="${{ inputs.chainsaw_version }}"
77+
VERSION="${VERSION#v}"
78+
TAR="chainsaw_linux_amd64.tar.gz"
79+
URL="https://github.com/kyverno/chainsaw/releases/download/v${VERSION}/${TAR}"
80+
TMP="$(mktemp -d)"
81+
curl -fsSL -o "${TMP}/${TAR}" "${URL}"
82+
tar -xzf "${TMP}/${TAR}" -C "${TMP}"
83+
sudo mv "${TMP}/chainsaw" /usr/local/bin/chainsaw
84+
sudo chmod +x /usr/local/bin/chainsaw
85+
rm -rf "${TMP}"
86+
chainsaw version
7687
7788
- name: Run Integration Tests
7889
shell: bash

.github/actions/security-scan/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ runs:
4545
using: 'composite'
4646
steps:
4747
- name: Run Trivy Security Scan
48-
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # v0.33.1
48+
uses: aquasecurity/trivy-action@e368e328979b113139d6f9068e03accaed98a518 # v0.34.1
4949
with:
5050
scan-type: ${{ inputs.scan_type }}
5151
scan-ref: ${{ inputs.scan_ref }}

.github/workflows/gpu-h100-inference-test.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,17 @@ jobs:
115115
116116
- name: Install chainsaw
117117
run: |
118-
CHAINSAW_VERSION=$(yq eval '.testing_tools.chainsaw' .settings.yaml)
119-
GOFLAGS= go install "github.com/kyverno/chainsaw@${CHAINSAW_VERSION}"
118+
set -euo pipefail
119+
VERSION=$(yq eval '.testing_tools.chainsaw' .settings.yaml)
120+
VERSION="${VERSION#v}"
121+
TAR="chainsaw_linux_amd64.tar.gz"
122+
URL="https://github.com/kyverno/chainsaw/releases/download/v${VERSION}/${TAR}"
123+
TMP="$(mktemp -d)"
124+
curl -fsSL -o "${TMP}/${TAR}" "${URL}"
125+
tar -xzf "${TMP}/${TAR}" -C "${TMP}"
126+
sudo mv "${TMP}/chainsaw" /usr/local/bin/chainsaw
127+
sudo chmod +x /usr/local/bin/chainsaw
128+
rm -rf "${TMP}"
120129
chainsaw version
121130
122131
- name: Run chainsaw health checks

.github/workflows/gpu-h100-training-test.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,17 @@ jobs:
9696

9797
- name: Install chainsaw
9898
run: |
99-
CHAINSAW_VERSION=$(yq eval '.testing_tools.chainsaw' .settings.yaml)
100-
GOFLAGS= go install "github.com/kyverno/chainsaw@${CHAINSAW_VERSION}"
99+
set -euo pipefail
100+
VERSION=$(yq eval '.testing_tools.chainsaw' .settings.yaml)
101+
VERSION="${VERSION#v}"
102+
TAR="chainsaw_linux_amd64.tar.gz"
103+
URL="https://github.com/kyverno/chainsaw/releases/download/v${VERSION}/${TAR}"
104+
TMP="$(mktemp -d)"
105+
curl -fsSL -o "${TMP}/${TAR}" "${URL}"
106+
tar -xzf "${TMP}/${TAR}" -C "${TMP}"
107+
sudo mv "${TMP}/chainsaw" /usr/local/bin/chainsaw
108+
sudo chmod +x /usr/local/bin/chainsaw
109+
rm -rf "${TMP}"
101110
chainsaw version
102111
103112
- name: Run chainsaw health checks

.github/workflows/on-tag.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ jobs:
221221
uses: ./.github/actions/ghcr-login
222222

223223
- name: Scan container image
224-
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # v0.33.1
224+
uses: aquasecurity/trivy-action@e368e328979b113139d6f9068e03accaed98a518 # v0.34.1
225225
with:
226226
scan-type: 'image'
227227
image-ref: '${{ matrix.image }}:${{ github.ref_name }}'

.github/workflows/vuln-scan.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: Scan Repo
6060
continue-on-error: true
61-
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # v0.33.1
61+
uses: aquasecurity/trivy-action@e368e328979b113139d6f9068e03accaed98a518 # v0.34.1
6262
with:
6363
scan-type: 'fs'
6464
scan-ref: '.'

.golangci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ version: "2"
1616

1717
# Run configuration
1818
run:
19-
go: "1.25"
19+
go: "1.26"
2020
timeout: 5m
2121
tests: true
2222
modules-download-mode: readonly

.grype.yaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ignore:
16-
- vulnerability: CVE-2025-61732
17-
package:
18-
name: stdlib
19-
version: go1.24.12
20-
until: "2025-12-31"
21-
- vulnerability: CVE-2025-68121
22-
package:
23-
name: stdlib
24-
version: go1.24.12
25-
until: "2025-12-31"
15+
ignore: []
16+
17+
exclude:
18+
- '**/.terraform/**'

.settings.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414

1515
# Language Versions
1616
languages:
17-
go: '1.25.7'
17+
go: '1.26.0'
1818

1919
# Build Tools
2020
build_tools:
2121
goreleaser: 'v2'
2222
ko: 'v0.18.0'
23-
crane: 'v0.20.6'
23+
crane: 'v0.21.0'
2424
git_cliff: '2.12.0'
2525

2626
# Linting
2727
linting:
2828
golangci_lint: 'v2.10.1'
29-
yamllint: '1.35.0'
29+
yamllint: '1.38.0'
3030
addlicense: 'v1.1.1'
3131
go_licenses: 'v1.6.0'
3232

@@ -38,9 +38,9 @@ security_tools:
3838
testing_tools:
3939
kubectl: 'v1.35.0'
4040
kind: '0.31.0'
41-
ctlptl: '0.8.43'
42-
tilt: '0.35.0'
43-
helm: 'v4.1.0'
41+
ctlptl: '0.9.0'
42+
tilt: '0.36.3'
43+
helm: 'v4.1.1'
4444
kwok: 'v0.7.0'
4545
chainsaw: 'v0.2.14'
4646
yq: 'v4.52.4'

0 commit comments

Comments
 (0)