Skip to content

fix(github-interceptor): use Error instead of Errorf for non-format strings#3108

Merged
tekton-robot merged 1 commit into
tektoncd:mainfrom
vdemeester:fix/github-interceptor-errorf-lint
Feb 10, 2026
Merged

fix(github-interceptor): use Error instead of Errorf for non-format strings#3108
tekton-robot merged 1 commit into
tektoncd:mainfrom
vdemeester:fix/github-interceptor-errorf-lint

Conversation

@vdemeester

Copy link
Copy Markdown
Member

Changes

Go 1.24's stricter vet checks flag non-constant format strings passed to printf-like functions. The code was incorrectly using Errorf with err.Error() as the format string, which could cause issues if the error message contained % characters.

This change uses Error() instead of Errorf() when no format arguments are needed, fixing the lint errors that were blocking dependabot PRs (#2939, #2961, #3036).

Files changed:

  • tekton/ci/interceptors/github/pkg/github/issue_comment.go
  • tekton/ci/interceptors/github/pkg/github/pull_request.go
  • tekton/ci/interceptors/github/pkg/github/push.go

/kind bug

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide
for more details.

…trings

Go 1.24's stricter vet checks flag non-constant format strings passed
to printf-like functions. The code was incorrectly using Errorf with
err.Error() as the format string, which could cause issues if the error
message contained % characters.

This change uses Error() instead of Errorf() when no format arguments
are needed, fixing the lint errors that were blocking dependabot PRs
(tektoncd#2939, tektoncd#2961, tektoncd#3036).

/kind bug

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
@tekton-robot tekton-robot added the kind/bug Categorizes issue or PR as related to a bug. label Feb 10, 2026
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 10, 2026
@anithapriyanatarajan

Copy link
Copy Markdown
Contributor

/approve

@tekton-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anithapriyanatarajan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [anithapriyanatarajan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 10, 2026
@anithapriyanatarajan

Copy link
Copy Markdown
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 10, 2026
@tekton-robot tekton-robot merged commit 32f9b0d into tektoncd:main Feb 10, 2026
27 checks passed
@vdemeester vdemeester deleted the fix/github-interceptor-errorf-lint branch February 10, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants