forked from NOAA-EMC/global-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (60 loc) · 1.53 KB
/
bash_code_analysis.yaml
File metadata and controls
70 lines (60 loc) · 1.53 KB
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
65
66
67
68
69
70
name: bash_code_analysis
on:
push:
branches:
- develop
pull_request:
workflow_dispatch:
jobs:
shfmt:
runs-on: ubuntu-22.04
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: write # to get PR metadata
security-events: write
checks: write
steps:
- name: checkout code
uses: actions/checkout@v6
with:
submodules: false
- name: shfmt scan
uses: reviewdog/action-shfmt@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
filter_mode: nofilter
fail_level: any
level: any
reviewdog_flags: '-reporter=github-pr-review'
shfmt_flags: ''
shellcheck:
runs-on: ubuntu-22.04
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: write # to get PR metadata
security-events: write
checks: write
steps:
- name: checkout code
uses: actions/checkout@v6
with:
submodules: false
- name: shellcheck scan
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
filter_mode: nofilter
fail_level: any
level: any
pattern: |
config.*
JG*
*.env
*.sh
*.bash
exclude: |
*/.git/*
*/*.yml
*/*.yaml
check_all_files_with_shebangs: true