Skip to content

🌱 Add assignment-helper workflow#149

Merged
clubanderson merged 1 commit intomainfrom
add-assignment-helper
Jan 13, 2026
Merged

🌱 Add assignment-helper workflow#149
clubanderson merged 1 commit intomainfrom
add-assignment-helper

Conversation

@clubanderson
Copy link
Copy Markdown
Contributor

Adds assignment-helper using shared workflow from infra.

Generated with Claude Code

Uses shared reusable workflow from kubestellar/infra.
Helps users who ask natural language questions about assignment.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
@kubestellar-prow kubestellar-prow bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Jan 13, 2026
@kubestellar-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign nirrozenbaum for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 13, 2026

jobs:
assignment-helper:
uses: kubestellar/infra/.github/workflows/reusable-assignment-helper.yml@main

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

Copilot Autofix

AI 3 months ago

To fix the problem, explicitly declare the GITHUB_TOKEN permissions for this workflow, rather than relying on the repository defaults. The safest general approach is to add a permissions: block either at the workflow root (applies to all jobs) or under the specific job. Since this workflow only has one job and delegates logic to a reusable workflow, the best fix here is to add a restrictive permissions block at the job level for assignment-helper. As we cannot see what the reusable workflow requires, a conservative but commonly safe baseline is contents: read, which allows the job to read repository contents but not push, and can be expanded in the future if the reusable workflow needs more (e.g., issues: write).

Concretely, in .github/workflows/assignment-helper.yml, update the assignment-helper job definition (around line 8–9) to include a permissions: section before the uses: line. No imports or additional definitions are required, just YAML changes. For example, add:

    permissions:
      contents: read

between assignment-helper: and uses: .... This explicitly restricts the GITHUB_TOKEN for this job while preserving existing functionality in most typical “assignment helper” scenarios that only need to read repo data and comments.

Suggested changeset 1
.github/workflows/assignment-helper.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/assignment-helper.yml b/.github/workflows/assignment-helper.yml
--- a/.github/workflows/assignment-helper.yml
+++ b/.github/workflows/assignment-helper.yml
@@ -6,4 +6,6 @@
 
 jobs:
   assignment-helper:
+    permissions:
+      contents: read
     uses: kubestellar/infra/.github/workflows/reusable-assignment-helper.yml@main
EOF
@@ -6,4 +6,6 @@

jobs:
assignment-helper:
permissions:
contents: read
uses: kubestellar/infra/.github/workflows/reusable-assignment-helper.yml@main
Copilot is powered by AI and may make mistakes. Always verify output.
@clubanderson clubanderson merged commit 1f8a1cd into main Jan 13, 2026
11 of 12 checks passed
@kubestellar-prow kubestellar-prow bot deleted the add-assignment-helper branch January 13, 2026 04:47
@github-actions
Copy link
Copy Markdown

Thank you for your contribution! Your PR has been successfully merged.

We'd love to hear your thoughts to help improve KubeStellar.
Please take a moment to fill out our short feedback survey:

https://kubestellar.io/survey

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

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants