-
Notifications
You must be signed in to change notification settings - Fork 980
76 lines (70 loc) · 2.45 KB
/
code-review.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
name: Code Review
##########################################
# Start the job on push for all branches #
##########################################
# yamllint disable-line rule:truthy
on:
pull_request:
branches:
- main
- policy-refresh
workflow_dispatch: {}
###############
# Set the Job #
###############
jobs:
super-linter:
name: GitHub Super Linter
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint eslzArm directory
uses: docker://github/super-linter:v4.9.5
env:
# Only lint changed files
VALIDATE_ALL_CODEBASE: false
# Need to define main branch as default
# is set to master in super-linter
DEFAULT_BRANCH: main
# Enable setting the status of each individual linter
# run in the Checks section of a pull request
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Only the following files will be linted:
FILTER_REGEX_INCLUDE: .*eslzArm\/.*
# The following linter types will be enabled:
VALIDATE_ARM: true
VALIDATE_JSON: true
VALIDATE_MARKDOWN: true
# Additional settings:
# Disable errors to only generate a report
DISABLE_ERRORS: true
- name: Lint src directory
uses: docker://github/super-linter:v4.9.5
env:
# Only lint changed files
VALIDATE_ALL_CODEBASE: false
# Need to define main branch as default
# is set to master in super-linter
DEFAULT_BRANCH: main
# Enable setting the status of each individual linter
# run in the Checks section of a pull request
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Only the following files will be linted:
FILTER_REGEX_INCLUDE: .*src\/.*
FILTER_REGEX_EXCLUDE: .*src\/.*\/(Deploy-Diagnostics-Firewall\.json|Deploy-FirewallPolicy\.json)
# The following linter types will be enabled:
VALIDATE_ARM: true
VALIDATE_BASH: true
VALIDATE_BASH_EXEC: true
VALIDATE_JSON: true
VALIDATE_MARKDOWN: true
VALIDATE_POWERSHELL: true
VALIDATE_YAML: true
# Additional settings:
# If a shell script is not executable, the bash-exec
# linter will report an error when set to true
ERROR_ON_MISSING_EXEC_BIT: true