-
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1.16 KB
/
shellcheck.yml
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
46
---
on: # yamllint disable-line rule:truthy
workflow_call:
inputs:
os:
description: The operating system to run the workflow on
required: false
type: string
default: ubuntu-latest
severity:
description: Severity level for shell-check
required: false
type: string
default: warning
secrets:
token:
description: Github token used to run this workflow
required: true
name: 🐞 Differential shell-check
jobs:
shellcheck:
runs-on: ${{ inputs.os }}
steps:
- name: 📦 Check out the codebase
uses: actions/[email protected]
with:
fetch-depth: 0
- name: 🐞 Differential shell-check
id: shellcheck
uses: redhat-plumbers-in-action/differential-shellcheck@v5
with:
severity: ${{ inputs.severity }}
token: ${{ secrets.token }}
- if: ${{ always() }}
name: 📤 Upload artifact with shell-check defects in SARIF format
uses: actions/upload-artifact@v4
with:
name: Differential shell-check SARIF
path: ${{ steps.shellcheck.outputs.sarif }}
...