mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 21:47:02 +01:00
20bf51f65b
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
30 lines
841 B
YAML
30 lines
841 B
YAML
---
|
|
name: Run shell-linter
|
|
on:
|
|
- push
|
|
- pull_request
|
|
jobs:
|
|
shellfmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v3
|
|
- name: Run the sh-checker
|
|
uses: luizm/action-sh-checker@v0.3.0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional if sh_checker_comment is false.
|
|
SHFMT_OPTS: -l -i 4 -w # Optional: pass arguments to shfmt.
|
|
with:
|
|
sh_checker_shellcheck_disable: true
|
|
sh_checker_comment: true
|
|
sh_checker_exclude: |
|
|
src/
|
|
debian/postrm
|
|
shellcheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v3
|
|
- name: Run shellcheck
|
|
run: ./shellcheck/docker_build_and_run_shellcheck.sh
|