-
Notifications
You must be signed in to change notification settings - Fork 18
45 lines (38 loc) · 985 Bytes
/
status-checks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: status checks
on:
push:
permissions:
contents: read
pull-requests: read
jobs:
shfmt:
name: run shfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-shfmt@v1
with:
level: info
filter_mode: nofilter
fail_on_error: true
shfmt_flags: '-ln bash -ci -sr -i 2'
shellcheck:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: shellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude-path: ./config.sample.sh
strict-check-on-push: true
diff-scan: false
- if: always()
uses: actions/upload-artifact@v4
with:
name: differential shellCheck SARIF
path: ${{ steps.shellCheck.outputs.sarif }}