chore: Analysis checks and fixes in CI - #58
Conversation
Signed-off-by: Leanne Ahern <lahern@redhat.com>
Reviewer's GuideIntroduces a Differential ShellCheck workflow to lint shell scripts on CI and resolves shellcheck-detected issues by fixing script quoting and adding a patched config file. Flow diagram for ShellCheck CI job stepsflowchart TD
A[Repository checkout] --> B[Differential ShellCheck]
B --> C[Upload SARIF artifact]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
There was a problem hiding this comment.
Hey @OpinionatedHeron - I've reviewed your changes - here's some feedback:
- In wait-for-plugins-and-start.sh, quoting EXTRA_CLI_ARGS as a single string may collapse multiple arguments into one—consider using array or unquoted expansion (
$EXTRA_CLI_ARGS) to preserve splitting. - For improved maintainability, consider referencing actions by semantic version tags instead of full commit SHAs in .github/workflows/scripts-checks.yaml.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In wait-for-plugins-and-start.sh, quoting EXTRA_CLI_ARGS as a single string may collapse multiple arguments into one—consider using array or unquoted expansion (`$EXTRA_CLI_ARGS`) to preserve splitting.
- For improved maintainability, consider referencing actions by semantic version tags instead of full commit SHAs in .github/workflows/scripts-checks.yaml.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
…ting Signed-off-by: Leanne Ahern <lahern@redhat.com>
rm3l
left a comment
There was a problem hiding this comment.
A few comments on the pinned digests, but LGTM overall.
Signed-off-by: Leanne Ahern <lahern@redhat.com>
…rhdh-local into analysisChecks
Description
Added scripts-checks.yaml to run shell checks on the entry scripts. Fixed any issues detected when running the check.
Which issue(s) does this PR fix or relate to
RHDHBUGS-790
PR acceptance criteria
How to test changes / Special notes to the reviewer
Run the script - should function as normal. Any errors should be detected, stopping the script if applicable.
Summary by Sourcery
Enable differential ShellCheck linting for shell scripts in CI and apply fixes to entry scripts.
Enhancements:
CI:
Chores: