mirror of
https://github.com/auricom/home-cluster.git
synced 2025-12-26 08:54:49 +01:00
| datasource | package | from | to | | ----------- | --------------------- | ------- | ------- | | github-tags | oxsecurity/megalinter | v6.14.0 | v6.15.0 |
68 lines
2.1 KiB
YAML
68 lines
2.1 KiB
YAML
---
|
|
name: "Lint"
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}-${{ github.workflow }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: MegaLinter
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Generate Token
|
|
uses: tibdex/github-app-token@v1
|
|
id: generate-token
|
|
with:
|
|
app_id: "${{ secrets.BOT_APP_ID }}"
|
|
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
|
|
|
|
- name: MegaLinter
|
|
uses: oxsecurity/megalinter@v6.15.0
|
|
env:
|
|
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}"
|
|
PRINT_ALPACA: false
|
|
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'workflow_dispatch' }}
|
|
ENABLE_LINTERS: |-
|
|
${{
|
|
join(
|
|
fromJSON('
|
|
[
|
|
"ACTION_ACTIONLINT",
|
|
"ANSIBLE_ANSIBLE_LINT",
|
|
"COPYPASTE_JSCPD",
|
|
"KUBERNETES_KUBEVAL",
|
|
"MARKDOWN_MARKDOWNLINT",
|
|
"REPOSITORY_GIT_DIFF",
|
|
"REPOSITORY_SECRETLINT",
|
|
"TERRAFORM_TERRAFORM_FMT",
|
|
"YAML_PRETTIER",
|
|
"YAML_YAMLLINT"
|
|
]
|
|
'),
|
|
','
|
|
)
|
|
}}
|
|
ANSIBLE_DIRECTORY: ansible
|
|
ANSIBLE_ANSIBLE_LINT_CONFIG_FILE: .ansible-lint
|
|
COPYPASTE_JSCPD_CONFIG_FILE: .github/linters/.jspcd.json
|
|
KUBERNETES_DIRECTORY: cluster
|
|
KUBERNETES_KUBEVAL_ARGUMENTS: --ignore-missing-schemas
|
|
KUBERNETES_KUBEVAL_FILTER_REGEX_INCLUDE: "(kubernetes)"
|
|
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .github/linters/.markdownlint.yaml
|
|
MARKDOWN_MARKDOWNLINT_RULES_PATH: .github/
|
|
YAML_YAMLLINT_CONFIG_FILE: .github/linters/.yamllint.yaml
|
|
YAML_PRETTIER_CONFIG_FILE: .github/linters/.prettierrc.yaml
|
|
YAML_PRETTIER_FILTER_REGEX_EXCLUDE: "(.*\\.sops\\.ya?ml)"
|