Skip to content

Add shellcheck CI workflow#1

Merged
terraboops merged 1 commit intomainfrom
terra/add-shellcheck-ci
Feb 2, 2026
Merged

Add shellcheck CI workflow#1
terraboops merged 1 commit intomainfrom
terra/add-shellcheck-ci

Conversation

@terraboops
Copy link
Collaborator

Summary

This PR adds shellcheck CI to the bc-github-actions repository to catch shell script issues early. While the repository currently has no shell scripts, this ensures that any future additions will be automatically checked for common issues.

Changes

  • Added .shellcheckrc with appropriate exclusions (SC1091, SC2154)
  • Added .github/workflows/shellcheck.yml for automated checking
  • Workflow runs on:
    • Push to main (when shell scripts or config changes)
    • Pull requests to main (when shell scripts or config changes)
    • Manual trigger (workflow_dispatch)

Configuration

The shellcheck workflow:

  • Uses ludeeus/action-shellcheck@2.0.0 (pinned version)
  • Severity set to warning (fails on warnings and errors)
  • Verifies all .sh files are executable
  • Only runs when relevant files change (efficient CI usage)

Benefits

  • Prevents common shell script issues from being merged
  • Enforces POSIX compatibility
  • Catches security issues and bad practices early
  • Ensures shell scripts remain executable

- Add .shellcheckrc with SC1091 and SC2154 disabled
- Add .github/workflows/shellcheck.yml for automated shell script checking
- Workflow will check any future shell scripts added to the repository
@terraboops terraboops merged commit ff19bcb into main Feb 2, 2026
5 checks passed
@terraboops terraboops deleted the terra/add-shellcheck-ci branch February 2, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant