-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (36 loc) · 1.07 KB
/
pullrequest-lint.yaml
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
---
name: lint YAML and Shell
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- main
- next
env:
# Currently no way to detect automatically
DEFAULT_BRANCH: main
jobs:
build:
name: Lint
runs-on: ubuntu-24.04
steps:
- name: Generate Token
uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: "${{ steps.generate-token.outputs.token }}"
- name: Lint
uses: super-linter/[email protected]
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: "${{ env.DEFAULT_BRANCH }}"
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}"
MARKDOWN_CONFIG_FILE: .markdownlint.yaml
YAML_CONFIG_FILE: .yamllint.yaml
KUBERNETES_KUBEVAL_OPTIONS: --ignore-missing-schemas
VALIDATE_NATURAL_LANGUAGE: false