mirror of
https://github.com/auricom/home-cluster.git
synced 2025-12-26 08:54:49 +01:00
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
---
|
|
name: Lint
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
# Currently no way to detect automatically
|
|
DEFAULT_BRANCH: main
|
|
|
|
jobs:
|
|
build:
|
|
name: Lint
|
|
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: Lint
|
|
uses: github/super-linter/slim@v4
|
|
env:
|
|
VALIDATE_ALL_CODEBASE: false
|
|
DEFAULT_BRANCH: "${{ env.DEFAULT_BRANCH }}"
|
|
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}"
|
|
ANSIBLE_CONFIG_FILE: .ansible-lint
|
|
MARKDOWN_CONFIG_FILE: .markdownlint.yaml
|
|
TERRAFORM_TFLINT_CONFIG_FILE: .tflint.hcl
|
|
YAML_CONFIG_FILE: .yamllint.yaml
|
|
KUBERNETES_KUBEVAL_OPTIONS: --ignore-missing-schemas
|