Add GitHub Actions workflows for Bearer checks

This commit is contained in:
2025-11-11 07:33:26 -06:00
parent ac907308c0
commit becd3aa15d
2 changed files with 49 additions and 0 deletions

20
.github/workflows/bearer-pr.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Bearer PR Check
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
rule_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bearer
uses: bearer/bearer-action@v2
with:
diff: true

29
.github/workflows/bearer.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Bearer Master
on:
push:
branches:
- master
permissions:
contents: read
security-events: write
jobs:
rule_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bearer
uses: bearer/bearer-action@v2
with:
format: sarif
output: results.sarif
- name: Upload SARIF file
if: always()
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif