From 2a5d3c248fbccfd1f711d027d70ba855625f22f3 Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Tue, 5 Jan 2021 10:40:58 -0800 Subject: Add YAML validation for configuration files. For validation, the "on" key in existing YAML files is changed to a literal string. In the YAML spec, on is a keyword which encodes a boolean value, so without relying on a specific implementation the YAML files are technically not encoding an object that complies with the specification. PiperOrigin-RevId: 350172147 --- .github/workflows/build.yml | 2 +- .github/workflows/go.yml | 2 +- .github/workflows/issue_reviver.yml | 2 +- .github/workflows/labeler.yml | 2 +- .github/workflows/stale.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3be10b9bb..ab0bf9cb5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ # This workflow also generates the build badge that is referred to by # the main README. name: "Build" -on: +"on": push: branches: - master diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ff3059e2a..e62991691 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -3,7 +3,7 @@ # workflow simply generates and pushes the branch, as long as appropriate # permissions are available. name: "Go" -on: +"on": push: branches: - master diff --git a/.github/workflows/issue_reviver.yml b/.github/workflows/issue_reviver.yml index f03b814c9..3bd883035 100644 --- a/.github/workflows/issue_reviver.yml +++ b/.github/workflows/issue_reviver.yml @@ -1,7 +1,7 @@ # This workflow revives issues that are still referenced in the code, and may # have been accidentally closed or marked stale. name: "Issue reviver" -on: +"on": schedule: - cron: '0 0 * * *' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index a53fdb3e9..3a19065e1 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,6 +1,6 @@ # Labeler labels incoming pull requests. name: "Labeler" -on: +"on": - pull_request jobs: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index be10c5bc4..3a4aa22e2 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,7 +1,7 @@ # The stale workflow closes stale issues and pull requests, unless specific # tags have been applied in order to keep them open. name: "Close stale issues" -on: +"on": schedule: - cron: "0 0 * * *" -- cgit v1.2.3