-
Notifications
You must be signed in to change notification settings - Fork 131
[DNM] fix(security): backport v0.48.0 fixes to v0.43.x #2760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release-v0.43.x
Are you sure you want to change the base?
Changes from all commits
0136e47
454d15e
6ca896b
5eb65a0
c499229
e98673d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,8 @@ | ||
| TARGET_NAMESPACE=pipelines-as-code | ||
| HUGO_VERSION=0.146.0 | ||
| HTMLTEST_VERSION=0.17.0 | ||
| GOLANGCI_LINT=golangci-lint | ||
| GOLANGCI_LINT_VERSION ?= v2.12.2 | ||
| GO_TOOLCHAIN ?= go1.25.0 | ||
|
Comment on lines
+4
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The pinned versions for |
||
| GOFUMPT=gofumpt | ||
| TKN_BINARY_NAME := tkn | ||
| TKN_BINARY_URL := https://tekton.dev/docs/cli/\#installation | ||
|
|
@@ -12,12 +13,21 @@ TIMEOUT_UNIT = 20m | |
| TIMEOUT_E2E = 45m | ||
| DEFAULT_GO_TEST_FLAGS := -race -failfast | ||
| GO_TEST_FLAGS := | ||
| GOTOOLCHAIN ?= $(GO_TOOLCHAIN) | ||
| export GOTOOLCHAIN | ||
|
|
||
| SHELL := bash | ||
| TOPDIR := $(shell git rev-parse --show-toplevel) | ||
| TMPDIR := $(TOPDIR)/tmp | ||
| HUGO_BIN := $(TMPDIR)/hugo/hugo | ||
| HTMLTEST_BIN := $(TMPDIR)/htmltest/htmltest | ||
| GOLANGCI_LINT_OS ?= $(shell uname -s | tr '[:upper:]' '[:lower:]') | ||
| GOLANGCI_LINT_ARCH ?= $(shell uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/') | ||
| GOLANGCI_LINT_PACKAGE := golangci-lint-$(patsubst v%,%,$(GOLANGCI_LINT_VERSION))-$(GOLANGCI_LINT_OS)-$(GOLANGCI_LINT_ARCH) | ||
| GOLANGCI_LINT_DIR := $(TMPDIR)/golangci-lint/$(GOLANGCI_LINT_VERSION) | ||
| GOLANGCI_LINT_BIN := $(GOLANGCI_LINT_DIR)/golangci-lint | ||
| GOLANGCI_LINT ?= $(GOLANGCI_LINT_BIN) | ||
| GOLANGCI_LINT_EXTRA_ARGS ?= --concurrency=1 | ||
|
|
||
| # Safe file list helpers using null-delimited output | ||
| # Usage: $(call GIT_LS_FILES,<patterns>,<command>) | ||
|
|
@@ -93,13 +103,21 @@ lint-e2e-naming: ## check e2e test naming conventions | |
| @./hack/check-e2e-test-naming.sh | ||
|
|
||
| .PHONY: lint-go | ||
| lint-go: ## runs go linter on all go files | ||
| lint-go: golangci-lint ## runs go linter on all go files | ||
| @echo "Linting go files..." | ||
| @$(GOLANGCI_LINT) run ./pkg/... ./test/... --modules-download-mode=vendor \ | ||
| @$(GOLANGCI_LINT) run $(GOLANGCI_LINT_EXTRA_ARGS) ./pkg/... ./test/... --modules-download-mode=vendor \ | ||
| --max-issues-per-linter=0 \ | ||
| --max-same-issues=0 \ | ||
| --timeout $(TIMEOUT_UNIT) | ||
|
|
||
| .PHONY: golangci-lint | ||
| golangci-lint: $(GOLANGCI_LINT_BIN) ## download pinned golangci-lint into tmp | ||
|
|
||
| $(GOLANGCI_LINT_BIN): | ||
| @mkdir -p $(GOLANGCI_LINT_DIR) | ||
| @echo "Downloading golangci-lint $(GOLANGCI_LINT_VERSION) for $(GOLANGCI_LINT_OS)-$(GOLANGCI_LINT_ARCH)" | ||
| @curl -fsSL "https://github.com/golangci/golangci-lint/releases/download/$(GOLANGCI_LINT_VERSION)/$(GOLANGCI_LINT_PACKAGE).tar.gz" | tar -xz -C "$(GOLANGCI_LINT_DIR)" --strip-components=1 "$(GOLANGCI_LINT_PACKAGE)/golangci-lint" | ||
|
|
||
| .PHONY: lint-yaml | ||
| lint-yaml: ## runs yamllint on all yaml files | ||
| @echo "Linting yaml files..." | ||
|
|
@@ -158,9 +176,9 @@ fix-python-errors: ## fix all python errors generated by ruff | |
| [[ -n "$$STATUS" ]] && { echo "Python files has been cleaned π§Ή. Cleaned Files: "; echo "$$STATUS" ;} || echo "Python files are clean β¨" | ||
|
|
||
| .PHONY: fix-golangci-lint | ||
| fix-golangci-lint: ## run golangci-lint and fix on all go files | ||
| fix-golangci-lint: golangci-lint ## run golangci-lint and fix on all go files | ||
| @echo "Fixing some golangi-lint files..." | ||
| @$(GOLANGCI_LINT) run ./... --modules-download-mode=vendor \ | ||
| @$(GOLANGCI_LINT) run $(GOLANGCI_LINT_EXTRA_ARGS) ./... --modules-download-mode=vendor \ | ||
| --max-issues-per-linter=0 \ | ||
| --max-same-issues=0 \ | ||
| --timeout $(TIMEOUT_UNIT) \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Docker image
docker.io/golang:1.25does not exist because Go 1.25 is not a released version. This will cause the Tekton lint task to fail to pull the image and run. Please use a valid, released Go version image such asdocker.io/golang:1.23.