Skip to content

Commit 56a3a61

Browse files
committed
chore: update dependencies and documentation linting rules
Bumped Go version to 1.26 in Tekton CI tasks and updated codespell to v2.4.2. Additionally, added a Vale rule to prevent session ID exposure in URLs, adjusted bare-metal term mappings, and updated UBI images in test data. Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent 1c44713 commit 56a3a61

File tree

9 files changed

+23
-14
lines changed

9 files changed

+23
-14
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: detect-private-key
1616
exclude: ".*_test.go"
1717
- repo: https://github.com/codespell-project/codespell
18-
rev: v2.4.1
18+
rev: v2.4.2
1919
hooks:
2020
- id: codespell
2121
files: "^(docs/content|pkg|test)/.*"

.tekton/doc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ spec:
6363
- name: workingdir
6464
value: $(workspaces.source.path)
6565
- name: hugo-build
66-
image: docker.io/golang:1.25
66+
image: docker.io/golang:1.26
6767
workingDir: $(workspaces.source.path)
6868
script: |
6969
#!/usr/bin/env bash

.tekton/generate-coverage-release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ spec:
5757
- name: workingdir
5858
value: $(workspaces.source.path)
5959
- name: unittest
60-
image: docker.io/golang:1.25
60+
image: docker.io/golang:1.26
6161
workingDir: $(workspaces.source.path)
6262
env:
6363
- name: GOCACHE
@@ -94,7 +94,7 @@ spec:
9494
exit "${test_status}"
9595
- name: codecov
9696
# Has everything we need in there and we already fetched it!
97-
image: docker.io/golang:1.25
97+
image: docker.io/golang:1.26
9898
workingDir: $(workspaces.source.path)
9999
env:
100100
- name: CODECOV_TOKEN
@@ -112,7 +112,7 @@ spec:
112112
chmod +x ./codecov
113113
./codecov -C {{revision}} -v
114114
- name: upload-release
115-
image: docker.io/golang:1.25
115+
image: docker.io/golang:1.26
116116
workingDir: $(workspaces.source.path)
117117
env:
118118
- name: HUB_TOKEN

.tekton/go.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ spec:
5656
- name: unittest
5757
# we get bumped out when usingh the official image with docker.io
5858
# ratelimit so workaround this.
59-
image: docker.io/golang:1.25
59+
image: docker.io/golang:1.26
6060
env:
6161
- name: GOCACHE
6262
value: $(workspaces.source.path)/go-build-cache/cache
@@ -94,7 +94,7 @@ spec:
9494
exit "${test_status}"
9595
9696
- name: coverage
97-
image: docker.io/golang:1.25
97+
image: docker.io/golang:1.26
9898
env:
9999
- name: CODECOV_TOKEN
100100
valueFrom:

.tekton/linter.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ spec:
166166
167167
- name: check-e2e-tests-naming
168168
displayName: "Check e2e tests naming convention"
169-
image: docker.io/golang:1.25
169+
image: docker.io/golang:1.26
170170
workingDir: $(workspaces.source.path)
171171
script: |
172172
make lint-e2e-naming
173173
174174
- name: check-generated-schemas
175175
displayName: "Check generated OpenAPI schemas"
176-
image: docker.io/golang:1.25
176+
image: docker.io/golang:1.26
177177
workingDir: $(workspaces.source.path)
178178
env:
179179
- name: HUB_TOKEN

.vale/styles/RedHat/SessionId.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
extends: existence
3+
level: error
4+
ignorecase: true
5+
scope: raw
6+
action:
7+
name: remove
8+
message: "Do not publish URLs that contain session identifiers. Exposed session IDs enable session hijacking and unauthorized account access."
9+
tokens:
10+
- '[&?](sessionId|seSessionId)=[0-9a-zA-Z-]{8,}'

.vale/styles/RedHat/TermsErrors.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ swap:
2020
"(?<!Mozilla )Thunderbird": Mozilla Thunderbird
2121
"(?<!pseudo-)ops": operations
2222
"(?<!self-)hosted engine|hosted-engine": self-hosted engine
23-
"bare metal( clusters?| compute| configuration| controls?| environments?| equipment| events?| hardware| hosts?| infrastructure| installations?| installers?| instances?| machines?| media| nodes?| provisioning| servers?| workers?| networks?)": bare-metal$1
24-
"bare-metal(?! clusters?| compute| configuration| controls?| environments?| equipment| events?| hardware| hosts?| infrastructure| installations?| installers?| instances?| machines?| media| nodes?| provisioning| servers?| workers?)": bare metal
23+
"bare metal( clusters?| compute| configuration| controls?| environments?| equipment| events?| hardware| hosts?| infrastructure| installations?| installers?| instances?| machines?| media| nodes?| provisioning| servers?| systems?| workers?| networks?)": bare-metal$1
24+
"bare-metal(?! clusters?| compute| configuration| controls?| environments?| equipment| events?| hardware| hosts?| infrastructure| installations?| installers?| instances?| machines?| media| nodes?| provisioning| servers?| systems?| workers?)": bare metal
2525
"[bB]asic [aA]uth": Basic HTTP authentication|Basic authentication
2626
"a lot(?: of)?": many|much
2727
"best of breed|best-of-breed": best in class
@@ -436,7 +436,7 @@ swap:
436436
virtual diskette drive: virtual floppy drive
437437
virtual diskette(?! drive): virtual floppy disk
438438
virtual DOS machine: DOS session
439-
versus: compared to
439+
vs: versus|compared to
440440
virtual hard disk: virtual hard drive
441441
virtual-equals-real: nonpageable
442442
virtual-equals-virtual: pageable

.vale/styles/RedHat/TermsWarnings.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ swap:
1616
'(?<!\/)etc(?!\/)': and so on
1717
'\b(?:eg)': for example
1818
'\b(?:ie)': that is
19-
'I(?!/O)': you
2019
'is updatable|are updatable': can be updated|can be changed
2120
"(?<!the |the Red Hat )Hybrid Cloud Console|(?<!the )Red Hat Hybrid Cloud Console|(?<!the |Red Hat |Hybrid )Cloud Console|the Cloud Console": the Red Hat Hybrid Cloud Console|the Hybrid Cloud Console
2221
all caps: uppercase

test/testdata/pipelinerun-tekton-validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
taskSpec:
1515
stepsos:
1616
- name: step
17-
image: registry.access.redhat.com/ubi9/ubi-micro
17+
image: registry.access.redhat.com/ubi10/ubi-micro
1818
script: |
1919
echo "HELLOMOTO"
2020
exit 0

0 commit comments

Comments
 (0)