From 4c12a7878b687f8f338efd5eed7951e6cce6cb48 Mon Sep 17 00:00:00 2001 From: David Knaack Date: Thu, 2 Mar 2023 18:49:26 +0100 Subject: [PATCH] ci: use `reviewdog/action-suggester` for config-schema check (#4857) * ci: use `reviewdog/action-suggester` for config-schema check * increase workflow permissions --- .github/workflows/workflow.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 8894faba..75e6d450 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -135,6 +135,10 @@ jobs: name: Check if config schema is up to date needs: cargo_check runs-on: ubuntu-latest + permissions: + checks: write + contents: read + pull-requests: write steps: - name: Setup | Checkout uses: actions/checkout@v3 @@ -153,7 +157,11 @@ jobs: run: cargo run --locked --features config-schema -- config-schema > .github/config-schema.json - name: Check | Detect Changes - run: git diff --exit-code .github/config-schema.json + uses: reviewdog/action-suggester@v1.6.0 + with: + tool_name: starship config-schema + filter_mode: nofilter + fail_on_error: 'true' # Run tests on Linux, macOS, and Windows # On both Rust stable and Rust nightly