mirror of
https://github.com/ashishb/android-security-awesome.git
synced 2025-02-23 06:54:51 +00:00
Add linter for shell scripts (#173)
This commit is contained in:
parent
f9ef44ef9b
commit
8de859f6d1
35
.github/workflows/lint-shell-script.yaml
vendored
Normal file
35
.github/workflows/lint-shell-script.yaml
vendored
Normal file
@ -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
|
@ -1,6 +1,6 @@
|
||||
# android-security-awesome 
|
||||
|
||||
[](https://github.com/ashishb/android-security-awesome/actions/workflows/test.yml) [](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-markdown.yaml) [](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-yaml.yaml)
|
||||
[](https://github.com/ashishb/android-security-awesome/actions/workflows/test.yml) [](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-shell-script.yaml) [](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-markdown.yaml) [](https://github.com/ashishb/android-security-awesome/actions/workflows/lint-yaml.yaml)
|
||||
|
||||
A collection of android security related resources.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user