fix(ci): remove bogus actionyaml-lint package, fix shellcheck severity #3
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
riley/codetether-action!3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ci-lint-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
CI was failing on every PR with two errors:
actionyaml-lintnpm package does not exist (HTTP 404 from npm registry) — causing theaction-yaml-lintjob to exit with code 1shellcheckwas failing on info-level notes (SC1091, SC2034, SC2155) that are expected in a composite action contextChanges
npm install -g actionyaml-lint— the package does not exist on npm. The Python schema validation that follows it was already doing the real work. Enhanced it slightly to also validate step shells.warningand exclude known-safe codes:SC1091: sourced files not found at lint time (expected — they exist at runtime)SC2034: variables "appear unused" but are used externally or exportedSC2155: declare-and-assign cosmetic style warningTest Plan
CI on this PR itself will validate the fix passes both linting jobs.
Impact
Unblocks PR #2 (fix/silent-partial-completion) which is a production fix for issue #505.
Pull request overview
Fixes CI linting failures by removing a nonexistent npm dependency in the
action-yaml-lintjob and adjusting ShellCheck to ignore expected composite-action lint notes, while extending the Python action.yml validation to check step shells.Changes:
npm install -g actionyaml-lint(nonexistent package) and rely on Python schema validation.shellvalues are supported.Comments suppressed due to low confidence (1)
.github/workflows/test.yml:39
python3 -cis indented inside the quoted string (e.g.,import yaml, sysstarts with leading spaces).python -ctreats leading indentation as anIndentationError: unexpected indent, so this validation step is likely to fail now that the earlier npm failure is removed. Consider switching to a heredoc (python3 - <<'PY' ... PY) or otherwise dedenting the code before execution.💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The shell allowlist includes
zsh, but composite actions don't supportshell: zsh(supported shells are typicallybash,sh,pwsh, andpython). This validation could therefore permit an invalid action.yml configuration; consider removingzsh(and aligning the allowlist exactly to GitHub's supported shells for composite actions).Superseded by PR #4 which includes the same CI fixes (removed actionyaml-lint, set shellcheck severity threshold with exclusions) along with the execution limit and checkpoint changes. PR #4 has been merged.
Pull request closed