Skip to content

ci: add helm lint and template validation on PRs#173

Open
camjay wants to merge 2 commits intoPortkey-AI:mainfrom
camjay:ci/helm-lint-template
Open

ci: add helm lint and template validation on PRs#173
camjay wants to merge 2 commits intoPortkey-AI:mainfrom
camjay:ci/helm-lint-template

Conversation

@camjay
Copy link
Copy Markdown

@camjay camjay commented Mar 24, 2026

Adds a CI workflow that runs helm lint and helm template for all charts on pull requests that touch charts/.

Catches template rendering errors (missing values, broken Go templates, invalid YAML) before merge. Uses the same Helm version and setup action as the existing release.yaml.

Runs helm lint and helm template for all charts on pull requests
that touch files under charts/. Catches template rendering errors
before merge.

Uses the same Helm version (v3.12.0) and setup action as release.yaml.
Copy link
Copy Markdown
Contributor

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

Adds a pull-request CI workflow to validate Helm charts when changes touch charts/, helping catch templating/lint issues before merge and aligning Helm setup with the existing chart release workflow.

Changes:

  • Introduce a new PR-triggered GitHub Actions workflow scoped to charts/** changes.
  • Run helm lint across each chart directory under charts/.
  • Run helm template across each chart directory under charts/.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +10 to +13
jobs:
lint-and-template:
runs-on: ubuntu-latest
steps:
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

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

Consider explicitly setting minimal permissions for this workflow/job (e.g., contents: read). Without an explicit permissions block, the workflow inherits the repository’s default GITHUB_TOKEN permissions, which may be broader than needed for checkout + helm lint/template.

Copilot uses AI. Check for mistakes.
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.

@camjay can you set explicit minimal permissions?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Addressed in 1a83f65permissions: contents: read added at job level, consistent with the release workflow.

Comment on lines +10 to +13
jobs:
lint-and-template:
runs-on: ubuntu-latest
steps:
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.

@camjay can you set explicit minimal permissions?

@camjay camjay requested a review from sk-portkey April 1, 2026 23:38
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.

3 participants