Conversation
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>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
|
||
| jobs: | ||
| assignment-helper: | ||
| uses: kubestellar/infra/.github/workflows/reusable-assignment-helper.yml@main |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
In general, the fix is to add an explicit permissions block that grants only the minimal GITHUB_TOKEN scopes required by this workflow. This can be done at the top level of the workflow (applies to all jobs) or under the specific job. Since this file contains a single job, either location is fine; adding it at the job level keeps the scope clear and local.
The best minimal, non-breaking fix here is to add permissions: { contents: read } to the assignment-helper job, since most reusable workflows at least need to read repository contents. We should not assume the need for write operations (like issues: write or pull-requests: write) without seeing evidence; if the reusable workflow requires more, it will fail and can then be adjusted. Concretely, in .github/workflows/assignment-helper.yml, under jobs:, and indented to align with uses:, insert:
permissions:
contents: readNo imports or additional methods are needed; this is purely a YAML configuration change within the GitHub Actions workflow.
| @@ -6,4 +6,6 @@ | ||
|
|
||
| jobs: | ||
| assignment-helper: | ||
| permissions: | ||
| contents: read | ||
| uses: kubestellar/infra/.github/workflows/reusable-assignment-helper.yml@main |
Adds assignment-helper using shared workflow from infra.
Generated with Claude Code