Added yamllint rule to ignore "on" in github actions (#11396)

Currently all the github actions return warnings because the "on"
keyword in the yaml files are being interpreted as a "truthy" value by
yamllint. To ignore this behavior I added a rule which ignores the "on".
See https://github.com/adrienverge/yamllint/issues/430.

Signed-off-by: Gabriel Goller <gabriel.goller@acs.it>

Signed-off-by: Gabriel Goller <gabriel.goller@acs.it>
Co-authored-by: Gabriel Goller <gabriel.goller@acs.it>
This commit is contained in:
Gabriel Goller 2022-10-03 12:52:57 +02:00 committed by GitHub
parent 8120af22e2
commit 04dd6be1a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 9 deletions

View file

@ -1,5 +1,5 @@
name: buf.build name: buf.build
on: on: # yamllint disable-line rule:truthy
pull_request: pull_request:
paths: paths:
- ".github/workflows/buf-lint.yml" - ".github/workflows/buf-lint.yml"

View file

@ -1,5 +1,5 @@
name: buf.build name: buf.build
on: on: # yamllint disable-line rule:truthy
push: push:
branches: branches:
- main - main

View file

@ -1,6 +1,6 @@
--- ---
name: CI name: CI
on: on: # yamllint disable-line rule:truthy
pull_request: pull_request:
push: push:
jobs: jobs:

View file

@ -1,7 +1,7 @@
--- ---
name: "CodeQL" name: "CodeQL"
on: on: # yamllint disable-line rule:truthy
workflow_call: workflow_call:
schedule: schedule:
- cron: "26 14 * * 1" - cron: "26 14 * * 1"

View file

@ -1,4 +1,4 @@
on: on: # yamllint disable-line rule:truthy
repository_dispatch: repository_dispatch:
types: [funcbench_start] types: [funcbench_start]
name: Funcbench Workflow name: Funcbench Workflow

View file

@ -1,5 +1,5 @@
name: CIFuzz name: CIFuzz
on: on: # yamllint disable-line rule:truthy
workflow_call: workflow_call:
jobs: jobs:
Fuzzing: Fuzzing:

View file

@ -1,6 +1,6 @@
name: 'Lock Threads' name: 'Lock Threads'
on: on: # yamllint disable-line rule:truthy
schedule: schedule:
- cron: '13 23 * * *' - cron: '13 23 * * *'
workflow_dispatch: workflow_dispatch:

View file

@ -1,4 +1,4 @@
on: on: # yamllint disable-line rule:truthy
repository_dispatch: repository_dispatch:
types: [prombench_start, prombench_restart, prombench_stop] types: [prombench_start, prombench_restart, prombench_stop]
name: Prombench Workflow name: Prombench Workflow

View file

@ -1,6 +1,6 @@
--- ---
name: Sync repo files name: Sync repo files
on: on: # yamllint disable-line rule:truthy
schedule: schedule:
- cron: '44 17 * * *' - cron: '44 17 * * *'
jobs: jobs: