]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ci(lint): add shell linter - Differential ShellCheck 258/head
authorJan Macku <jamacku@redhat.com>
Tue, 27 Sep 2022 22:29:23 +0000 (16:29 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 27 Sep 2022 22:30:06 +0000 (16:30 -0600)
It performs differential ShellCheck scans and report results directly in pull request.

documentation: https://github.com/redhat-plumbers-in-action/differential-shellcheck

Signed-off-by: Jan Macku <jamacku@redhat.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
.github/workflows/continuous-integration.yml

index a996f9b8612a46b05b3a32d6f0e786a5828604ef..a9692b942f499f5c4dd29411f1e3fa89dbe5da92 100644 (file)
@@ -39,6 +39,27 @@ jobs:
     - name: Perform CodeQL Analysis
       uses: github/codeql-action/analyze@v2
 
+  # Doc: https://github.com/redhat-plumbers-in-action/differential-shellcheck#usage
+  differential-shellcheck:
+    name: Differential ShellCheck
+    if: github.event_name == 'pull_request'
+    runs-on: ubuntu-latest
+
+    permissions:
+      contents: read
+      security-events: write
+      pull-requests: write
+
+    steps:
+      - uses: actions/checkout@v3
+        with:
+          fetch-depth: 0
+      - name: Differential ShellCheck
+        uses: redhat-plumbers-in-action/differential-shellcheck@v3
+        with:
+          severity: warning
+          token: ${{ secrets.GITHUB_TOKEN }}
+
   doxygen:
     name: Doxygen
     # Only run Doxygen against the main branch