Merge pull request #10814 from kata-containers/shellcheck-gha

gha: Add shellcheck
This commit is contained in:
Zvonko Kaiser 2025-02-11 18:30:41 -05:00 committed by GitHub
commit 5431841a80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

29
.github/workflows/shellcheck.yaml vendored Normal file
View File

@ -0,0 +1,29 @@
# https://github.com/marketplace/actions/shellcheck
name: Check shell scripts
on:
workflow_dispatch:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
shellcheck:
runs-on: ubuntu-24.04
steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master