- Add release-*.*.* pattern to 8 workflows missing it - Fix duplicate release branch patterns in 3 workflows - Ensure consistent branch trigger format across all workflows - Critical workflows now properly trigger on release branches Fixes workflows: actionlint, backend-code-checks, go-lint, reject-gh-secrets, run-schema-v2-e2e, shellcheck, swagger-gen, trivy-scan
30 lines
590 B
YAML
30 lines
590 B
YAML
name: Shellcheck
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- release-*.*.*
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
shellcheck:
|
|
name: Shellcheck scripts
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read # clone the repository
|
|
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run Shellcheck
|
|
run: find scripts/ -name '*.sh' -type f -exec shellcheck -e SC1071 -e SC2162 '{}' +
|