Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
pull_request:
branches:
- main
paths:
- 'charts/**'

jobs:
lint-and-template:
permissions:
contents: read

runs-on: ubuntu-latest
steps:
Comment on lines +10 to +16
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
Contributor 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.

- name: Checkout
uses: actions/checkout@v4

- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.12.0

- name: Lint charts
run: |
for chart in charts/*/; do
echo "=== Linting ${chart} ==="
helm lint "${chart}"
done

- name: Template charts
run: |
for chart in charts/*/; do
echo "=== Templating ${chart} ==="
helm template test "${chart}"
done