Repository navigation
Conversation
Five checks, and no frameworks under it: shell has tools, not frameworks, so ShellCheck appears as a suggested command inside the layer rather than as a layer of its own. The critical one is a recursive delete whose target comes from a variable. An empty variable makes the target the filesystem root, and the line looks correct in review. The check ignores targets already guarded so that a real hit is not buried in noise. Beside it: scripts that keep running after a command fails, so a deploy that could not fetch the artifact restarts the service anyway and exits zero; credentials written into scripts, which are committed and also visible in the process list to every user on the machine; a download piped straight into a shell, which runs whatever the server returns at that moment with nothing pinned or verified; and a linter over the scripts you deploy with. Shell extends universal only. A deploy script is not a website. Two gate rejections while writing this, both fair. One why field ran past the three hundred character cap. The delete pattern used a dollar sign next to a quote, which the command lint reads as ANSI-C quoting and refuses. The bash manual is cited nowhere despite being the obvious source: the link checker cannot reach gnu.org, where curl can, so citing it would file a false broken-link issue every week. The POSIX shell specification is used instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tier 2, item 3.
universal → shell, 8 checks composed, 5 new. No frameworksunder it — shell has tools, not frameworks, so ShellCheck is a
verify.suggestinside the layer rather than a layer of its own, exactly as theroadmap called for.
destructive-paths-guardedrm -rf $DIR/tmpdelete the filesystem root, and the line looks fine in reviewno-inline-credentialsexits-on-failureno-remote-script-piped-to-shellstatic-analysis-cleanshellextendsuniversalonly. A deploy script is not a website.Three things worth flagging
The gate rejected my own work twice, both fair. A
whyran past the300-character cap. And the delete pattern put a
$next to a quote, which thecommand lint reads as ANSI-C quoting and refuses — the linter caught its own
author writing a construct the rules ban.
The delete check ignores guarded targets. First version flagged
rm -rf -- "${RELEASE_DIR:?}/tmp", which already refuses to run when unset.Reporting that is noise, and noise is how a real hit gets scrolled past. Now
filtered.
The bash manual is cited nowhere, despite being the obvious source. Node's
fetchtimes out on gnu.org wherecurlgets a clean 200:Citing it would file a false broken-link issue every week and train everyone to
ignore that workflow. The POSIX shell specification is used instead — arguably
the better citation for
set -esemantics anyway. Worth knowing as a generalrule: check a reference with the linter's own method, not with curl.