Last active
July 2, 2020 14:42
-
-
Save mehagar/011a260e5c4cd34794128f27d59a008e to your computer and use it in GitHub Desktop.
How to use pronto-brakeman as a Github Action
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: Pronto | |
on: [pull_request] | |
jobs: | |
pronto: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- run: | | |
git fetch --no-tags --prune --depth=10 origin +refs/heads/*:refs/remotes/origin/* | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
- name: Install pronto-brakeman | |
run: | | |
gem install specific_install | |
gem specific_install https://github.com/zenom/pronto-brakeman | |
- name: Setup pronto | |
run: gem install pronto | |
- name: Run Pronto | |
run: PRONTO_PULL_REQUEST_ID="$(jq --raw-output .number "$GITHUB_EVENT_PATH")" PRONTO_GITHUB_ACCESS_TOKEN="${{ github.token }}" pronto run -f github_status github_pr -c origin/${{ github.base_ref }} |
As alternative you can use https://github.com/reviewdog/action-brakeman 🐶
As alternative you can use github.com/reviewdog/action-brakeman 🐶
I haven't heard of that project. Looks cool!
@mgrachev Looks like that Pronto has a couple of gems [1]. Reviewdog can handle all those plugins?
I suppose it supports most of this list.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is based on this example from pronto. Because of an open issue with pronto-brakeman, I install a fork of the project which has a fix for it.