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