Skip to content

Implemented linters in CI#938

Merged
markshleifer-coralogix merged 1 commit into
masterfrom
chore/cx-45442
Jun 15, 2026
Merged

Implemented linters in CI#938
markshleifer-coralogix merged 1 commit into
masterfrom
chore/cx-45442

Conversation

@markshleifer-coralogix

@markshleifer-coralogix markshleifer-coralogix commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Description

Most of the added lines (around 97%) are Helm golden render snapshots.

Add CI coverage for security and hygiene checks:

  • gitleaks current-tree secret scanning
  • shellcheck for checked-in shell scripts
  • hadolint for Dockerfiles
  • Helm golden render checks for high-risk presets

Some shellcheck/hadolint ignores were added where changing the code would be riskier than documenting the existing baseline. Examples include preserving existing Docker label keys that may be externally consumed, keeping established package-install commands unchanged, and avoiding behavior changes in installer/runtime scripts where lint-only rewrites could affect execution.

How Has This Been Tested?

  1. Deliberately added or changed files to force each new CI job to fail:

    • fake private key for gitleaks
    • unquoted shell variable for shellcheck
    • bad Dockerfile fixture for hadolint
    • golden render mismatch for Helm
  2. Confirmed the jobs failed for the expected reasons, then reverted the failure fixtures.

  3. Re-ran the checks and verified the scripts/jobs passed again.

  4. Built the changed Linux Dockerfiles with Docker where possible; the buildable images passed. Windows Dockerfiles were not built locally because macOS Docker Desktop cannot build Windows container images.

Checklist:

  • I have updated the relevant Helm chart(s) version(s)
  • I have updated the relevant component changelog(s)
  • This change does not affect any particular component (e.g. it's CI or docs change)

@CLAassistant

CLAassistant commented Jun 12, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ff2973654f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread otel-ecs-supervisor/terraform.tfvars.example
@markshleifer-coralogix markshleifer-coralogix force-pushed the chore/cx-45442 branch 3 times, most recently from e15c2db to 42ee58d Compare June 12, 2026 11:50
@markshleifer-coralogix markshleifer-coralogix changed the title implemented linters in ci Implemented linters in CI Jun 12, 2026
Comment thread telemetrygen-windows-image/Dockerfile
Comment thread scripts/version_bump_check.sh Outdated
Comment thread otel-supervised-collector/uninstall.sh Outdated

detect_pkg_type() {
if [ -r /etc/os-release ]; then
# shellcheck disable=SC1091

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why ignoring?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

SC1091 is ignored because /etc/os-release exists on the target Linux host at runtime, but shellcheck cannot follow that system file during static analysis.

Comment thread otel-integration/CHANGELOG.md Outdated
Comment thread otel-integration/k8s-helm/values.yaml
Comment thread otel-integration/k8s-helm/tests/golden/ebpf-profiler.yaml
steps:
- uses: actions/checkout@v4

- name: Install gitleaks

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about adding some script we can run locally to install these tools in our machines and reuse here?
Or maybe use one of the GitHub Actions for Hadolint or Gitleaks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As discussed, will do in a separate PR.

Comment thread logs/fluent-bit/image/Dockerfile
Comment thread otel-supervised-ebpf-profiler/Dockerfile Outdated
@markshleifer-coralogix markshleifer-coralogix force-pushed the chore/cx-45442 branch 3 times, most recently from 30bdd34 to 56e880c Compare June 15, 2026 11:49
@markshleifer-coralogix markshleifer-coralogix merged commit 9ec9523 into master Jun 15, 2026
42 checks passed
@markshleifer-coralogix markshleifer-coralogix deleted the chore/cx-45442 branch June 15, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants