diff options
author | Jan Macku <jamacku@redhat.com> | 2022-08-16 14:34:49 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2022-08-16 13:33:57 +0000 |
commit | 3f3c718e79abdac698ae90de5cd4c0560a0a75d4 (patch) | |
tree | 017bb6cef5a68afbfed23dcb7b9a4b6825efa4fa /.github/workflows/differential-shellcheck.yml | |
parent | 19193b489841a7bcccda7122ac0849cf6efe59fd (diff) | |
download | systemd-3f3c718e79abdac698ae90de5cd4c0560a0a75d4.tar.gz |
ci(lint): add shell linter - Differential ShellCheck
It performs differential ShellCheck scans and report results directly in
pull request.
documentation:
https://github.com/redhat-plumbers-in-action/differential-shellcheck
Diffstat (limited to '.github/workflows/differential-shellcheck.yml')
-rw-r--r-- | .github/workflows/differential-shellcheck.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/differential-shellcheck.yml b/.github/workflows/differential-shellcheck.yml new file mode 100644 index 0000000000..154cf4a455 --- /dev/null +++ b/.github/workflows/differential-shellcheck.yml @@ -0,0 +1,30 @@ +--- +# https://github.com/redhat-plumbers-in-action/differential-shellcheck#readme + +name: Differential ShellCheck +on: + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + + permissions: + security-events: write + pull-requests: write + + steps: + - name: Repository checkout + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b + with: + fetch-depth: 0 + + - name: Differential ShellCheck + uses: redhat-plumbers-in-action/differential-shellcheck@60360c0fb283149ed03ad16b66257a967c3e5231 + with: + token: ${{ secrets.GITHUB_TOKEN }} |