From 2f12ed54140909ee731a682816cf12cf153a9b87 Mon Sep 17 00:00:00 2001 From: Jill Klang Date: Thu, 23 May 2024 20:36:36 -0400 Subject: [PATCH] With reviewdog --- .github/workflows/bearer.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bearer.yml b/.github/workflows/bearer.yml index 748d289f..1ecfa1b0 100644 --- a/.github/workflows/bearer.yml +++ b/.github/workflows/bearer.yml @@ -1,14 +1,28 @@ -name: Bearer +name: Automated Code Reviews / Security Analysis on: [pull_request] permissions: contents: read + pull-requests: write jobs: rule_check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: reviewdog/action-setup@v1 + with: + reviewdog_version: latest - name: Bearer uses: bearer/bearer-action@v2 + with: + format: rdjson + output: rd.json + diff: true + - name: Run reviewdog + if: always() + env: + REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + cat rd.json | reviewdog -f=rdjson -reporter=github-pr-check