From 224b261041cdbf748b7e46b8430ec43cba996cf4 Mon Sep 17 00:00:00 2001 From: Stas Uschakow <150824261+ThatStasGuy@users.noreply.github.com> Date: Fri, 16 Feb 2024 09:36:37 +0100 Subject: [PATCH] Create reviewdog.yml Adding reviewdog-workflow with shellcheck. --- .github/workflows/reviewdog.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/reviewdog.yml diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml new file mode 100644 index 0000000..598e6d4 --- /dev/null +++ b/.github/workflows/reviewdog.yml @@ -0,0 +1,23 @@ +name: reviewdog +on: [pull_request] +permissions: + contents: read + id-token: write + issues: write + pull-requests: write +jobs: + shellcheck: + name: runner / shellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: shellcheck + uses: reviewdog/action-shellcheck@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review # Change reporter. + path: "." # Optional. + #pattern: "*.sh" # Optional. + exclude: "./.git/*" # Optional. + check_all_files_with_shebangs: "true" # Optional. + fail_on_error: "true"