Update server.ts #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bearer PR Check | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
permissions: | |
contents: read | |
# Add the pull-requests permission | |
pull-requests: write | |
jobs: | |
rule_check: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Report | |
id: report | |
uses: bearer/bearer-action@v2 | |
with: | |
format: rdjson | |
output: rd.json | |
# uncomment for Diff Scan | |
# diff: true | |
- uses: reviewdog/action-setup@v1 | |
with: | |
reviewdog_version: latest | |
- name: Run reviewdog | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cat rd.json | reviewdog -f=rdjson -reporter=github-pr-review |