Skip to content

Fix shellcheck SC2043 and triage workflow label permissions#250

Merged
electrocucaracha merged 4 commits intomasterfrom
copilot/fix-linting-issues
Mar 16, 2026
Merged

Fix shellcheck SC2043 and triage workflow label permissions#250
electrocucaracha merged 4 commits intomasterfrom
copilot/fix-linting-issues

Conversation

Copy link
Contributor

Copilot AI commented Mar 15, 2026

Two CI failures on PR #250: shellcheck SC2043 in _installers.sh and actions/labeler failing with 403 due to insufficient permissions.

Changes

  • _installers.sh: Remove single-item for addon in grafana loop (SC2043 — loop never iterates more than once); replace with direct inline commands
  • .github/workflows/triage.yml: Add pull-requests: write permission required by actions/labeler to assign labels
-        for addon in grafana; do
-            echo "Installing $addon Istio AddOn"
-            kubectl apply -f ".../samples/addons/${addon}.yaml"
-        done
+        echo "Installing grafana Istio AddOn"
+        kubectl apply -f ".../samples/addons/grafana.yaml"

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Co-authored-by: electrocucaracha <2782150+electrocucaracha@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix linting issues and run make commands Fix SPELL_CODESPELL linting failures and add codespell configuration Mar 15, 2026
Copilot AI requested a review from electrocucaracha March 15, 2026 16:35
Co-authored-by: electrocucaracha <2782150+electrocucaracha@users.noreply.github.com>
Copilot AI changed the title Fix SPELL_CODESPELL linting failures and add codespell configuration Fix CI linting failures: codespell errors, wordlist, and workflow permissions Mar 15, 2026
Co-authored-by: electrocucaracha <2782150+electrocucaracha@users.noreply.github.com>
Copilot AI changed the title Fix CI linting failures: codespell errors, wordlist, and workflow permissions Fix shellcheck SC2043 and triage workflow label permissions Mar 15, 2026
@electrocucaracha electrocucaracha marked this pull request as ready for review March 16, 2026 02:46
@qodo-code-review
Copy link

Review Summary by Qodo

Fix linting issues: shellcheck, codespell, and workflow permissions

🐞 Bug fix ✨ Enhancement

Grey Divider

Walkthroughs

Description
• Fix shellcheck SC2043 by removing single-item for loop in _installers.sh
• Add pull-requests: write permission to triage workflow for labeler action
• Fix multiple spelling errors across shell scripts and configuration files
• Add codespell configuration with custom wordlist for linting
• Update linter workflow permissions and failed-build-issue-action parameters
Diagram
flowchart LR
  A["Linting Issues"] --> B["Shellcheck SC2043"]
  A --> C["Codespell Errors"]
  A --> D["Workflow Permissions"]
  B --> E["Remove for loop in _installers.sh"]
  C --> F["Fix spelling in multiple files"]
  C --> G["Add .codespellrc config"]
  D --> H["Add pull-requests:write to triage.yml"]
  D --> I["Update linter.yml permissions"]
Loading

Grey Divider

File Changes

1. _functions.sh 🐞 Bug fix +2/-2

Fix spelling: bechmarking to benchmarking

_functions.sh


2. _installers.sh 🐞 Bug fix +3/-5

Remove single-item for loop, fix spelling

_installers.sh


3. _uninstallers.sh 🐞 Bug fix +2/-2

Fix spelling: servcies to services

_uninstallers.sh


View more (11)
4. ci/update_versions.sh 🐞 Bug fix +1/-1

Fix spelling: Udpate to Update

ci/update_versions.sh


5. tests/_functions.sh 🐞 Bug fix +2/-2

Fix spelling: asignment to assignment

tests/_functions.sh


6. tests/knative.sh 🐞 Bug fix +1/-1

Fix spelling: could't to couldn't

tests/knative.sh


7. .codespellrc ⚙️ Configuration changes +2/-0

Add codespell configuration file

.codespellrc


8. .github/.wordlist.txt ⚙️ Configuration changes +1/-1

Add MKE, remove Ons from wordlist

.github/.wordlist.txt


9. .github/workflows/linter.yml ⚙️ Configuration changes +2/-3

Update permissions and failed-build-issue-action config

.github/workflows/linter.yml


10. .github/workflows/triage.yml 🐞 Bug fix +1/-0

Add pull-requests write permission for labeler

.github/workflows/triage.yml


11. helm/falco/custom-rules.yml 🐞 Bug fix +1/-1

Fix spelling: exapand to expand

helm/falco/custom-rules.yml


12. playbooks/roles/criu/molecule/default/prepare.yml 🐞 Bug fix +1/-1

Fix spelling: Boostrap to Bootstrap

playbooks/roles/criu/molecule/default/prepare.yml


13. playbooks/roles/pmem/molecule/default/prepare.yml 🐞 Bug fix +1/-1

Fix spelling: Boostrap to Bootstrap

playbooks/roles/pmem/molecule/default/prepare.yml


14. playbooks/roles/qat_driver/defaults/main.yml 🐞 Bug fix +1/-1

Fix spelling: ressources to resources

playbooks/roles/qat_driver/defaults/main.yml


Grey Divider

Qodo Logo

@qodo-code-review
Copy link

qodo-code-review bot commented Mar 16, 2026

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider


Action required

1. Spellcheck breaks on AddOns 🐞 Bug ⛯ Reliability
Description
The PR removes the wordlist entry Ons while the repo still contains the camel-cased term AddOns
in README/scripts, so spellchecking/linting that uses this wordlist will start flagging it and can
fail CI. This is amplified because .codespellrc newly points codespell to the same
.github/.wordlist.txt file.
Code

.github/.wordlist.txt[83]

-Ons
Evidence
pyspelling is configured to use .github/.wordlist.txt; the repository still contains multiple
AddOns occurrences; and .codespellrc newly reuses the same wordlist for codespell. With Ons
removed from the wordlist, AddOns-derived tokens will no longer be allowed by the configured
spelling/lint tooling.

.spellcheck.yml[10-21]
.codespellrc[1-2]
README.md[125-134]
_installers.sh[161-169]
.github/.wordlist.txt[68-86]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
CI spelling/lint checks rely on `.github/.wordlist.txt`. The PR removes `Ons` from this wordlist, but the repo still uses `AddOns` in documentation and scripts, and `.codespellrc` now shares the same wordlist with codespell.

### Issue Context
- `pyspelling` consumes `.github/.wordlist.txt`.
- `codespell` is newly configured to consume the same wordlist.
- `AddOns` still appears in README/scripts.

### Fix Focus Areas
- .github/.wordlist.txt[72-86]
- README.md[125-134]
- _installers.sh[161-169]
- .codespellrc[1-2]
- .spellcheck.yml[10-21]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

NodeLocal
NODELOCALDNS
ol
Ons

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Spellcheck breaks on addons 🐞 Bug ⛯ Reliability

The PR removes the wordlist entry Ons while the repo still contains the camel-cased term AddOns
in README/scripts, so spellchecking/linting that uses this wordlist will start flagging it and can
fail CI. This is amplified because .codespellrc newly points codespell to the same
.github/.wordlist.txt file.
Agent Prompt
### Issue description
CI spelling/lint checks rely on `.github/.wordlist.txt`. The PR removes `Ons` from this wordlist, but the repo still uses `AddOns` in documentation and scripts, and `.codespellrc` now shares the same wordlist with codespell.

### Issue Context
- `pyspelling` consumes `.github/.wordlist.txt`.
- `codespell` is newly configured to consume the same wordlist.
- `AddOns` still appears in README/scripts.

### Fix Focus Areas
- .github/.wordlist.txt[72-86]
- README.md[125-134]
- _installers.sh[161-169]
- .codespellrc[1-2]
- .spellcheck.yml[10-21]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@electrocucaracha electrocucaracha merged commit 4a61bce into master Mar 16, 2026
20 of 30 checks passed
@electrocucaracha electrocucaracha deleted the copilot/fix-linting-issues branch March 16, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants