-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a POC for [bearer](https://docs.bearer.com/), which is a static scanner for security/privacy vulnerabilities. While [brakeman](https://brakemanscanner.org/) is Rails-specific, Bearer adds support for vulnerabilities on the language-level and supports the following languages: 1. JavaScript/TypeScript 2. Ruby 3. PHP 4. Java 5. Go 6. Python This PR aims to prove out bearer's effectiveness in the power-tools repo. Example failure: ![Screenshot 2024-11-06 at 9 56 43 AM](https://github.com/user-attachments/assets/6d99c673-26e9-4ce5-b03b-44ea3a5e3525)
- Loading branch information
Showing
4 changed files
with
30 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Automated Code Reviews | ||
on: [pull_request] | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
bearer: | ||
name: Bearer Security Analysis | ||
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: | ||
diff: true | ||
format: rdjson | ||
output: rd.json | ||
- name: Run reviewdog | ||
if: always() | ||
env: | ||
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
touch rd.json && cat rd.json | reviewdog -f=rdjson -reporter=github-pr-check |
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
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
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