Compare commits

...

3 Commits

Author SHA1 Message Date
Caius Durling
02aa70a64a Fix AcivityId typo in error strings (#4359) 2026-01-21 01:14:26 +01:00
Jiaren Wu
d3ca9de3ca Potential fix for code scanning alert no. 7: Use of a broken or weak cryptographic hashing algorithm on sensitive data (#4353)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-01-14 21:04:02 -08:00
github-actions[bot]
a868229fe0 Updates: runner to v2.331.0 (#4351)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-14 13:32:39 -05:00
7 changed files with 9 additions and 9 deletions

View File

@@ -6,7 +6,7 @@ endif
DOCKER_USER ?= $(shell echo ${DOCKER_IMAGE_NAME} | cut -d / -f1) DOCKER_USER ?= $(shell echo ${DOCKER_IMAGE_NAME} | cut -d / -f1)
VERSION ?= dev VERSION ?= dev
COMMIT_SHA = $(shell git rev-parse HEAD) COMMIT_SHA = $(shell git rev-parse HEAD)
RUNNER_VERSION ?= 2.330.0 RUNNER_VERSION ?= 2.331.0
TARGETPLATFORM ?= $(shell arch) TARGETPLATFORM ?= $(shell arch)
RUNNER_NAME ?= ${DOCKER_USER}/actions-runner RUNNER_NAME ?= ${DOCKER_USER}/actions-runner
RUNNER_TAG ?= ${VERSION} RUNNER_TAG ?= ${VERSION}

View File

@@ -2,7 +2,7 @@ package actionssummerwindnet
import ( import (
"context" "context"
"crypto/sha1" "crypto/sha256"
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"sort" "sort"
@@ -176,7 +176,7 @@ func (c *MultiGitHubClient) initClientForSecret(secret *corev1.Secret, dependent
sort.SliceStable(ks, func(i, j int) bool { return ks[i] < ks[j] }) sort.SliceStable(ks, func(i, j int) bool { return ks[i] < ks[j] })
hash := sha1.New() hash := sha256.New()
for _, k := range ks { for _, k := range ks {
hash.Write(secret.Data[k]) hash.Write(secret.Data[k])
} }

View File

@@ -36,7 +36,7 @@ type ActionsError struct {
} }
func (e *ActionsError) Error() string { func (e *ActionsError) Error() string {
return fmt.Sprintf("actions error: StatusCode %d, AcivityId %q: %v", e.StatusCode, e.ActivityID, e.Err) return fmt.Sprintf("actions error: StatusCode %d, ActivityId %q: %v", e.StatusCode, e.ActivityID, e.Err)
} }
func (e *ActionsError) Unwrap() error { func (e *ActionsError) Unwrap() error {
@@ -112,7 +112,7 @@ type MessageQueueTokenExpiredError struct {
} }
func (e *MessageQueueTokenExpiredError) Error() string { func (e *MessageQueueTokenExpiredError) Error() string {
return fmt.Sprintf("MessageQueueTokenExpiredError: AcivityId %q, StatusCode %d: %s", e.activityID, e.statusCode, e.msg) return fmt.Sprintf("MessageQueueTokenExpiredError: ActivityId %q, StatusCode %d: %s", e.activityID, e.statusCode, e.msg)
} }
type HttpClientSideError struct { type HttpClientSideError struct {

View File

@@ -22,7 +22,7 @@ func TestActionsError(t *testing.T) {
s := err.Error() s := err.Error()
assert.Contains(t, s, "StatusCode 404") assert.Contains(t, s, "StatusCode 404")
assert.Contains(t, s, "AcivityId \"activity-id\"") assert.Contains(t, s, "ActivityId \"activity-id\"")
assert.Contains(t, s, "example error description") assert.Contains(t, s, "example error description")
}) })

View File

@@ -6,7 +6,7 @@ DIND_ROOTLESS_RUNNER_NAME ?= ${DOCKER_USER}/actions-runner-dind-rootless
OS_IMAGE ?= ubuntu-22.04 OS_IMAGE ?= ubuntu-22.04
TARGETPLATFORM ?= $(shell arch) TARGETPLATFORM ?= $(shell arch)
RUNNER_VERSION ?= 2.330.0 RUNNER_VERSION ?= 2.331.0
RUNNER_CONTAINER_HOOKS_VERSION ?= 0.8.0 RUNNER_CONTAINER_HOOKS_VERSION ?= 0.8.0
DOCKER_VERSION ?= 28.0.4 DOCKER_VERSION ?= 28.0.4

View File

@@ -1,2 +1,2 @@
RUNNER_VERSION=2.330.0 RUNNER_VERSION=2.331.0
RUNNER_CONTAINER_HOOKS_VERSION=0.8.0 RUNNER_CONTAINER_HOOKS_VERSION=0.8.0

View File

@@ -36,7 +36,7 @@ var (
testResultCMNamePrefix = "test-result-" testResultCMNamePrefix = "test-result-"
RunnerVersion = "2.330.0" RunnerVersion = "2.331.0"
RunnerContainerHooksVersion = "0.8.0" RunnerContainerHooksVersion = "0.8.0"
) )