NO-ISSUE: Update module github.com/golangci/golangci-lint to v2.12.2#10268
NO-ISSUE: Update module github.com/golangci/golangci-lint to v2.12.2#10268red-hat-konflux[bot] wants to merge 1 commit intomasterfrom
Conversation
|
@red-hat-konflux[bot]: This pull request explicitly references no jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughTwo Dockerfiles update the pinned golangci-lint installer version from ChangesGolangci-lint version bumps
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
ci-images/Dockerfile.lint (1)
3-3: 🏗️ Heavy liftSupply-chain risk: piping a remote installer script into
shLine 3 uses
curl .../install.sh | sh .... Even though this is the standard golangci-lint install pattern, it weakens supply-chain integrity guarantees for the build context.Consider improving this by:
- pinning the installer script URL to a specific commit/tag (not
main), and/or- verifying the downloaded script (or the installed binary) via checksum/signature.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@ci-images/Dockerfile.lint` at line 3, The RUN line that pipes the remote installer into sh (the golangci-lint install command) creates a supply-chain risk; change it to download a specific, pinned installer URL (use a fixed commit/tag instead of main) and verify integrity before execution (for example fetch the installer to a file, validate its checksum or signature, then run it), or alternatively download the golangci-lint release binary for the pinned version and verify its checksum/signature before installing; update the RUN statement accordingly to reference the pinned version and include verification steps instead of piping to sh.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@ci-images/Dockerfile.lint`:
- Line 3: The RUN line that pipes the remote installer into sh (the
golangci-lint install command) creates a supply-chain risk; change it to
download a specific, pinned installer URL (use a fixed commit/tag instead of
main) and verify integrity before execution (for example fetch the installer to
a file, validate its checksum or signature, then run it), or alternatively
download the golangci-lint release binary for the pinned version and verify its
checksum/signature before installing; update the RUN statement accordingly to
reference the pinned version and include verification steps instead of piping to
sh.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: de58e1ee-e41d-4455-a0dd-76a95eb2ff85
📒 Files selected for processing (2)
Dockerfile.assisted-service-buildci-images/Dockerfile.lint
Codecov Report✅ All modified and coverable lines are covered by tests. Please upload reports for the commit a70544e to get more accurate results. Additional details and impacted files@@ Coverage Diff @@
## master #10268 +/- ##
=======================================
Coverage 44.35% 44.35%
=======================================
Files 416 416
Lines 72808 72808
=======================================
+ Hits 32295 32297 +2
+ Misses 37579 37578 -1
+ Partials 2934 2933 -1 🚀 New features to boost your workflow:
|
b18d74c to
0a82d2f
Compare
|
New changes are detected. LGTM label has been removed. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
ci-images/Dockerfile.lint (1)
3-3: Consider pinninginstall.shto the version tag as a best practice.At Line 3, the binary version is pinned (
v2.12.1) but the installer script is fetched frommain. While the current scripts are identical, pinning the installer URL to the version tag makes the build future-proof against potential script changes and improves supply-chain clarity.🔧 Suggested patch
-RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/main/install.sh | sh -s -- -b /usr/bin v2.12.1 +ARG GOLANGCI_LINT_VERSION=v2.12.1 +RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/${GOLANGCI_LINT_VERSION}/install.sh \ + | sh -s -- -b /usr/bin ${GOLANGCI_LINT_VERSION}🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@ci-images/Dockerfile.lint` at line 3, Replace the installer URL fetched in the RUN command so it is pinned to the same release tag as the binary (v2.12.1) instead of using the `main` branch; update the invocation that currently pipes https://raw.githubusercontent.com/golangci/golangci-lint/main/install.sh to curl so it fetches the install.sh for tag v2.12.1, keeping the existing `sh -s -- -b /usr/bin v2.12.1` arguments intact to ensure the installer and binary versions match.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@ci-images/Dockerfile.lint`:
- Line 3: Replace the installer URL fetched in the RUN command so it is pinned
to the same release tag as the binary (v2.12.1) instead of using the `main`
branch; update the invocation that currently pipes
https://raw.githubusercontent.com/golangci/golangci-lint/main/install.sh to curl
so it fetches the install.sh for tag v2.12.1, keeping the existing `sh -s -- -b
/usr/bin v2.12.1` arguments intact to ensure the installer and binary versions
match.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: f4a2c12a-b6c3-4721-b8aa-27e6067eaff2
📒 Files selected for processing (2)
Dockerfile.assisted-service-buildci-images/Dockerfile.lint
✅ Files skipped from review due to trivial changes (1)
- Dockerfile.assisted-service-build
0a82d2f to
5236b2d
Compare
0de5310 to
81dace2
Compare
81dace2 to
8d5b17c
Compare
8d5b17c to
ebcda6a
Compare
ebcda6a to
1792647
Compare
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
1792647 to
a70544e
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: red-hat-konflux[bot] The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@red-hat-konflux[bot]: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This PR contains the following updates:
v2.11.4→v2.12.2Release Notes
golangci/golangci-lint (github.com/golangci/golangci-lint)
v2.12.2Compare Source
Released on 2026-05-06
gomodguard_v2: fix blocked configurationgomodguard_v2: from 2.1.0 to 2.1.3iface: from 1.4.1 to 1.4.2v2.12.1Compare Source
Released on 2026-05-01
gomodguard_v2: fix panic with migration suggestioninstall.shscript (if you are still using an URL based on the branchmaster, please update to usehttps://golangci-lint.run/install.sh)v2.12.0Compare Source
Released on 2026-05-01
clickhouselintlinter https://github.com/ClickHouse/clickhouse-go-linterdupl: fromf665c8dtoc99c5cf(extended detection)funcorder: from 0.5.0 to 0.6.0 (new option:function)goconst: add an option to ignore strings from testsgoconst: from 1.8.2 to 1.10.0 (extended detection)gomodguard_v2: from 1.4.1 to 2.1.0 (major version with new configuration)gosec: from619ce21to 2.26.1 (new checks:G124,G708,G709,G710)govet: addinlineanalyzermakezero: from 2.1.0 to 2.2.1 (support slice type aliases)paralleltest: exposecheckcleanupoptionsloglint: from 0.11.1 to 0.12.0 (new options:allowed-keys,custom-funcs)wsl_v5: from 5.6.0 to 5.8.0 (new option:cuddle-max-statements; new checks:after-decl,after-defer,after-expr,after-go,cuddle-group)forbidigo: from 2.3.0 to 2.3.1godot: from 1.5.4 to 1.5.6govet-modernize: from 0.43.0 to 0.44.0ireturn: from 0.4.0 to 0.4.1rowserrcheck: from 1.1.1 toc5f79b8customcommandConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
To execute skipped test pipelines write comment
/ok-to-test.Documentation
Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.