Add shellcheck workflow for changed scripts - #3
Conversation
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
|
@copilot: in this same PR, fix any issues in script disable-all-workflows.sh, found by shellcheck |
Ran shellcheck on
No changes needed. |
|
@copilot: temporarily introduce a shellcheck error in a script file, so I can verify in this PR, that the check works |
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Added temporary shellcheck error in The workflow should now fail on this PR, demonstrating it correctly catches issues. Implemented in 2f0c03b. |
@copilot: revert this commit |
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Reverted the temporary shellcheck error. The script |
Plan: Add GitHub Workflow for Shellcheck
.github/workflowsdirectory structure.shfiles are changedImplementation Details
Created
.github/workflows/shellcheck.ymlthat:contents: read).shfile is modifiedubuntu-slimrunner for faster boot time (lightweight shellcheck task completes in <15 min)actions/checkout@v6for improved credential securitygit diffcommands to detect changed shell scripts (no third-party actions)git diff --name-only --diff-filter=ACMRTwith three-dot range to compare against merge base.shfiles usinggrepwhile IFS= read -rloopUpdated
.github/copilot-instructions.mdto document:Workflow Verification
The workflow was successfully tested by temporarily introducing a shellcheck error (SC2086) which was correctly detected and reported. The test error has been reverted, and all scripts now pass shellcheck validation.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.