forked from xapi-project/xen-api
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 922 Bytes
/
shellcheck.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
name: ShellCheck
on:
pull_request:
merge_group:
concurrency: # On new push, cancel old workflows from the same PR, branch or tag:
group: sc-${{ github.workflow }}-${{github.event_name}}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# https://www.shellcheck.net/wiki/GitHub-Actions
# https://github.com/redhat-plumbers-in-action/differential-shellcheck?tab=readme-ov-file#usage
shell-test:
name: Differential ShellCheck
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
# If needed severity levels can be controlled here
# severity: warning
- name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}