Skip to content

Conversation

@fin09pcap
Copy link
Member

The PR addresses the following updates.

  • Maintain go.mod and tools/go.mod to enforce the use of a common tool chain.
  • Update github action workflows to use v1.64.8 of golangci-lint.
  • Matches the version used in github workflows with the installed tools.
  • Update .golangci.yml for golangci runner configuration.

Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
@fin09pcap fin09pcap requested a review from Copilot April 28, 2025 19:16
@fin09pcap fin09pcap self-assigned this Apr 28, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR standardizes the toolchain and updates configurations for golangci-lint version consistency. Key changes include:

  • Adding nolint suppression comments with a TODO note in the cel extension files.
  • Updating the dependency list in .golangci.yml to align with the updated toolchain.
  • Adjusting GitHub workflow steps for proper checkout and specifying the golangci-lint version.

Reviewed Changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.

File Description
pkg/bundle/ruleset/engine/cel/ext/secret.go Added a nolint comment to suppress staticcheck warnings for deprecated usage.
pkg/bundle/ruleset/engine/cel/ext/package.go Added a similar nolint comment for deprecated usage.
.golangci.yml Updated dependency entries; note a duplicate entry for image-spec appears.
.github/workflows/go.yml Reorganized steps and updated checkout and golangci-lint action version.
Files not reviewed (2)
  • go.mod: Language not supported
  • tools/go.mod: Language not supported

.golangci.yml Outdated
- github.com/opencontainers/image-spec
- github.com/ory/dockertest/v3
- github.com/pelletier/go-toml
- github.com/pelletier/go-toml
Copy link

Copilot AI Apr 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependency 'github.com/opencontainers/image-spec' appears twice. Removing the duplicate entry will help avoid potential configuration conflicts.

Suggested change
- github.com/pelletier/go-toml

Copilot uses AI. Check for mistakes.
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Signed-off-by: Ben Stickel <ben.stickel@elastic.co>
Copy link

@robinverduijn robinverduijn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fin09pcap fin09pcap merged commit eaa954f into elastic:main Apr 28, 2025
13 of 14 checks passed
@fin09pcap fin09pcap deleted the chore/golangci_lint_maintenanc branch April 28, 2025 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants