Skip to content

Commit 08bd053

Browse files
committed
feat: use yamllint to check YAML files, instead of simply parsing and pretty-printing them
1 parent bb6a0d1 commit 08bd053

15 files changed

Lines changed: 65 additions & 15 deletions

.github/codeql/codeql-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# yamllint disable rule:document-start rule:document-end
2+
13
name: CodeQL configuration
24
paths:
35
- src/package

.github/dependabot.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This configuration file enables Dependabot version updates.
22
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates
33
# https://github.com/dependabot/feedback/issues/551
4+
#
5+
# yamllint disable rule:document-start rule:document-end
46

57
version: 2
68
updates:

.github/workflows/_build.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions
1919
#
2020
# for the security recommendations.
21+
#
22+
# yamllint disable rule:document-start rule:document-end
2123

2224
name: Build the package
23-
on:
25+
on: # yamllint disable-line rule:truthy
2426
workflow_call:
2527
inputs:
2628
disable_pip_audit:

.github/workflows/_generate-rebase.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Automatically rebase one branch on top of another; usually staging on top
22
# of main after a new package version was published.
3+
#
4+
# yamllint disable rule:document-start rule:document-end
35

46
name: Rebase branch
5-
on:
7+
on: # yamllint disable-line rule:truthy
68
workflow_call:
79
inputs:
810
to_head:

.github/workflows/_release-notifications.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Send a Slack release notification. Instructions to set up Slack to receive
22
# messages can be found here: https://github.com/slackapi/slack-github-action#setup-2
3+
#
4+
# yamllint disable rule:document-start rule:document-end
35

46
name: Release Notifications
5-
on:
7+
on: # yamllint disable-line rule:truthy
68
workflow_call:
79
inputs:
810
repo_name:

.github/workflows/_wiki-documentation.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# This reusable workflow publishes Markdown docs to Github Wiki. Some manual
22
# setup is required before using it: enable Wiki in repository and create at
33
# least one page.
4+
#
5+
# yamllint disable rule:document-start rule:document-end
46

57
name: Publish Github Wiki documentation
6-
on:
8+
on: # yamllint disable-line rule:truthy
79
workflow_call:
810
inputs:
911
release_tag:

.github/workflows/codeql-analysis.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Run CodeQL over the package. For more configuration options see codeql/codeql-config.yaml
22
# and: https://github.com/github/codeql-action
3+
#
4+
# yamllint disable rule:document-start rule:document-end
35

46
name: CodeQL
5-
on:
7+
on: # yamllint disable-line rule:truthy
68
push:
79
branches:
810
- main

.github/workflows/dependabot-automerge.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Automatically merge Dependabot PRs upon approval by leaving
22
# a comment on Dependabot's pull-request.
3+
#
4+
# yamllint disable rule:document-start rule:document-end
35

46
name: Automerge Dependabot PR
5-
on:
7+
on: # yamllint disable-line rule:truthy
68
pull_request_review:
79
types: [submitted]
810

.github/workflows/pr-change-set.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# This workflow checks and tests the package code, and it builds all package
22
# artifacts whenever there were changes to a pull request.
3+
#
4+
# yamllint disable rule:document-start rule:document-end
35

46
name: Check change set
5-
on:
7+
on: # yamllint disable-line rule:truthy
68
pull_request:
79
branches:
810
- '*'

.github/workflows/pr-conventional-commits.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
# package (https://github.com/commitizen-tools/commitizen) and its `cz`
33
# tool to check the title of the PR and all commit messages of the branch
44
# which triggers this Action.
5+
#
6+
# yamllint disable rule:document-start rule:document-end
57

68
name: Check conventional commits
7-
on:
9+
on: # yamllint disable-line rule:truthy
810
pull_request:
911
branches:
1012
- '*'

0 commit comments

Comments
 (0)