Skip to content

Commit

Permalink
chore(sec): 🧸 add bearer
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed Jul 7, 2024
1 parent 20f4cb5 commit 6391edf
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/bearer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 🧸 Bearer

on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read
pull-requests: write

jobs:
bearer:
name: 🧸 Bearer
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4

- name: 🐶 Setup Reviewdog
uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest

- name: 🧸 Bearer
uses: bearer/bearer-action@v2
id: bearer
with:
diff: true
format: rdjson
output: rd.json

- name: 🐶 Run reviewdog
if: always()
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cat rd.json | reviewdog -f=rdjson -reporter=github-pr-review

0 comments on commit 6391edf

Please sign in to comment.