-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (77 loc) · 3.15 KB
/
superlinter.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# This is a Terraform-managed file; manual changes will be overwritten.
# see https://github.com/workloads/github-organization/blob/main/templates/workflows/superlinter.tftpl.yml
---
name: "Code Quality: Super-Linter"
# yamllint disable-line rule:truthy
on:
push:
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions: read-all
jobs:
workflow:
# only run if workflows are enabled
if: ${{ vars.ENABLE_WORKFLOWS == 'true' }}
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
name: Super-Linter
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions:
statuses: write
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
# see https://github.com/actions/checkout/releases/tag/v4.1.1
- name: Checkout Repository
uses: "actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11" # ref: `tags/v4.1.1`
with:
# full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
# see https://github.com/super-linter/super-linter/releases/tag/v6.2.0
- name: Lint Code with Super-Linter
uses: "super-linter/super-linter@25003d0370b45d97187597838ecb9fdadfc08aea" # ref: `tags/v6.2.0`
env:
# see https://github.com/github/super-linter#environment-variables
CSS_FILE_NAME: ".stylelintrc.json"
DEFAULT_BRANCH: "main"
DISABLE_ERRORS: false
GITHUB_CUSTOM_API_URL: "https://api.github.com"
GITHUB_DOMAIN: "github.com"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
IGNORE_GENERATED_FILES: true
IGNORE_GITIGNORED_FILES: true
MARKDOWN_CONFIG_FILE: ".markdown-lint.yml"
MULTI_STATUS: true
SUPPRESS_POSSUM: true
TERRAFORM_TFLINT_CONFIG_FILE: ".tflint.hcl"
VALIDATE_ANSIBLE: true
VALIDATE_BASH: true
VALIDATE_BASH_EXEC: true
VALIDATE_CSS: true
VALIDATE_DOCKERFILE_HADOLINT: true
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_GO: true
VALIDATE_HTML: true
VALIDATE_JAVASCRIPT_STANDARD: true
VALIDATE_JSON: true
VALIDATE_MARKDOWN: true
VALIDATE_NATURAL_LANGUAGE: true
VALIDATE_SHELL_SHFMT: true
VALIDATE_TERRAFORM_FMT: true
VALIDATE_TERRAFORM_TFLINT: true
VALIDATE_TYPESCRIPT_STANDARD: true
VALIDATE_XML: true
VALIDATE_YAML: true
YAML_CONFIG_FILE: ".yaml-lint.yml"
YAML_ERROR_ON_WARNING: true
workflow-inactive:
# only run if workflows are disabled
if: ${{ vars.ENABLE_WORKFLOWS != 'true' }}
name: Workflow Status
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- name: Display Workflow Status
# shellcheck disable=SC2006
run: echo "::notice title='Workflow is not currently active'::'Check if `ENABLE_WORKFLOWS` is set to `true`.'"