taks #385
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: Styles | |
on: [push] | |
jobs: | |
styles: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Sign overcommit | |
run: | | |
bundle exec overcommit --sign && bundle exec overcommit --sign pre-commit | |
- name: Run overcommit | |
run: | | |
bundle exec overcommit --run | |
env: | |
GIT_AUTHOR_NAME: John Doe | |
GIT_AUTHOR_EMAIL: [email protected] | |
- name: Setup and run brakeman | |
run: | | |
gem install brakeman | |
brakeman --exit-on-warn --quiet -f plain --safe-methods sanitize |