diff --git a/.github/workflows/lint-shell-script.yaml b/.github/workflows/lint-shell-script.yaml new file mode 100644 index 0000000..23ef077 --- /dev/null +++ b/.github/workflows/lint-shell-script.yaml @@ -0,0 +1,35 @@ +--- +# Run this locally with act - https://github.com/nektos/act +# act -j lintShellScript +name: Lint Shell scripts + +on: # yamllint disable-line rule:truthy + push: + branches: [master, main] + paths: + - '**.sh' + - '**.bash' + - '.github/workflows/lint-shell-script.yaml' + pull_request: + branches: [master, main] + paths: + - '**.sh' + - '**.bash' + - '.github/workflows/lint-shell-script.yaml' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + + lintShellScript: + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@2.0.0 diff --git a/README.md b/README.md index c5b78af..52ae41a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # android-security-awesome ![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg) -[![Test](https://github.com/ashishb/android-security-awesome/actions/workflows/test.yml/badge.svg)](https://github.com/ashishb/android-security-awesome/actions/workflows/test.yml) [![Lint Markdown](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-markdown.yaml/badge.svg)](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-markdown.yaml) [![Lint YAML](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-yaml.yaml/badge.svg)](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-yaml.yaml) +[![Test](https://github.com/ashishb/android-security-awesome/actions/workflows/test.yml/badge.svg)](https://github.com/ashishb/android-security-awesome/actions/workflows/test.yml) [![Lint Shell scripts](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-shell-script.yaml/badge.svg)](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-shell-script.yaml) [![Lint Markdown](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-markdown.yaml/badge.svg)](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-markdown.yaml) [![Lint YAML](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-yaml.yaml/badge.svg)](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-yaml.yaml) A collection of android security related resources.