forked from NOAA-EMC/global-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (51 loc) · 1.52 KB
/
linters.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
name: shellnorms
on:
pull_request:
permissions:
contents: read
defaults:
run:
shell: bash -o pipefail {0}
jobs:
lint-shell:
runs-on: ubuntu-22.04
permissions:
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- id: ShellCheck
name: Lint shell scripts
uses: redhat-plumbers-in-action/differential-shellcheck@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- if: ${{ always() }}
name: Upload artifact with ShellCheck defects in SARIF format
uses: actions/upload-artifact@v3
with:
name: Differential ShellCheck SARIF
path: ${{ steps.ShellCheck.outputs.sarif }}
# lint-python:
# runs-on: ubuntu-latest
# permissions:
# security-events: write
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# - id: VCS_Diff_Lint
# name: Lint python scripts
# uses: fedora-copr/vcs-diff-lint-action@v1
# - if: ${{ always() }}
# name: Upload artifact with detected defects in SARIF format
# uses: actions/upload-artifact@v3
# with:
# name: VCS Diff Lint SARIF
# path: ${{ steps.VCS_Diff_Lint.outputs.sarif }}
# - if: ${{ failure() }}
# name: Upload SARIF to GitHub using github/codeql-action/upload-sarif
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: ${{ steps.VCS_Diff_Lint.outputs.sarif }}