summaryrefslogtreecommitdiffstats
path: root/.github/workflows/lint.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:36 +0000
commit70de5d4041249c1a0f597714398cc245f59495c6 (patch)
treeff491e31b95b662ca6c481ac49d1ca8a94c0226b /.github/workflows/lint.yml
parentAdding debian version 060+5-8. (diff)
downloaddracut-70de5d4041249c1a0f597714398cc245f59495c6.tar.xz
dracut-70de5d4041249c1a0f597714398cc245f59495c6.zip
Merging upstream version 102.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r--.github/workflows/lint.yml38
1 files changed, 30 insertions, 8 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index d02b332..16dac6c 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -2,31 +2,53 @@ name: Lint
on:
push:
- branches: [ master ]
+ branches: [ main ]
pull_request:
- branches: [ master ]
+ branches: [ main ]
jobs:
lint-shell:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: shfmt
- uses: luizm/action-sh-checker@v0.6.0
+ uses: luizm/action-sh-checker@v0.8.0
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SHFMT_OPTS: -s # arguments to shfmt.
with:
- sh_checker_shellcheck_disable: false
- sh_checker_comment: true
+ sh_checker_shellcheck_disable: true # disable shellcheck in favor of differential-shellcheck
+
+ differential-shellcheck:
+ runs-on: ubuntu-latest
+
+ permissions:
+ security-events: write
+
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - id: ShellCheck
+ name: Differential ShellCheck
+ uses: redhat-plumbers-in-action/differential-shellcheck@v5
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+
+ - if: ${{ always() }}
+ name: Upload artifact with ShellCheck defects in SARIF format
+ uses: actions/upload-artifact@v4
+ with:
+ name: Differential ShellCheck SARIF
+ path: ${{ steps.ShellCheck.outputs.sarif }}
lint-c:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: install tools
run: sudo apt-get install astyle