Skip to content

chore: Potential fix for code scanning alert no. 7: Workflow does not contain permissions - #221

Merged
vladd-bit merged 1 commit into
mainfrom
alert-autofix-7
Nov 20, 2026
Merged

vladd-bit merged 1 commit into
mainfrom
alert-autofix-7

Conversation

@vladd-bit

Copy link
Copy Markdown
Member

Potential fix for https://github.com/CogStack/cogstack-platform/security/code-scanning/7

Add an explicit permissions block for the helm-lint-test job (the one currently missing it), setting only the minimal required scope. The best minimal fix is:

  • In .github/workflows/build_helm_charts.yml, under jobs.helm-lint-test (right after runs-on), add:
    • permissions:
    • contents: read

This preserves existing behavior while ensuring that job cannot get broader token rights by default. Keep helm-publish’s existing permissions: contents: write unchanged, since it likely needs write access for release asset upload.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@vladd-bit vladd-bit changed the title Potential fix for code scanning alert no. 7: Workflow does not contain permissions chore: Potential fix for code scanning alert no. 7: Workflow does not contain permissions Nov 20, 2026
@vladd-bit vladd-bit self-assigned this Nov 20, 2026
@vladd-bit
vladd-bit marked this pull request as ready for review November 20, 2026 10:02
@vladd-bit
vladd-bit merged commit 8d5e5f9 into main Nov 20, 2026
7 of 8 checks passed
@vladd-bit
vladd-bit deleted the alert-autofix-7 branch November 20, 2026 10:03
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.

1 participant