Skip to content

Restrict Helm CI workflow token permissions #241

Description

@coderabbitai

Summary

Restrict the GitHub Actions token permissions for the Helm chart validation workflow.

Required change

Add an explicit permissions declaration to .github/workflows/helm-ci.yml.

The workflow only checks out repository content and runs Helm lint and template commands. Grant only the required read access:

permissions:
  contents: read

Place the declaration at the workflow level or the helm-validate job level. Do not change the existing Helm validation steps.

Rationale

Without an explicit permissions block, the workflow inherits the repository default GITHUB_TOKEN permissions. The workflow does not need write permissions.

Affected area

  • .github/workflows/helm-ci.yml

Acceptance criteria

  • The workflow declares explicit least-privilege token permissions.
  • The declaration grants contents: read only.
  • The Helm lint and template validation behavior remains unchanged.

Backlinks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions