Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do we want to handle code auditing now that Rails ships with a solution? #1215

Open
Tracked by #1213
stevepolitodesign opened this issue Jun 18, 2024 · 3 comments
Labels
Discussion Needs feedback

Comments

@stevepolitodesign
Copy link
Contributor

Rails 7.2 now ships with brakeman.

However, with the introduction of #1138, we risk having two auditing mechanisms.

@stevepolitodesign stevepolitodesign added the Discussion Needs feedback label Jun 18, 2024
@stevepolitodesign
Copy link
Contributor Author

@stevepolitodesign
Copy link
Contributor Author

Alternatively, we keep it, and just make sure CI runs the command. Below is from a fresh Rails 8 install.

jobs:
  scan_ruby:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: .ruby-version
          bundler-cache: true

      - name: Scan for common Rails security vulnerabilities using static analysis
        run: bin/brakeman --no-pager

@nickcharlton
Copy link
Member

I do quite like running this sort of thing on CI, so long as it's also available locally so that if you've got a problem you're debugging the feedback cycle is much tighter.

I feel like it's a case of automating the things I would otherwise forget, or that locally might break. I want linting on CI as well as in my editor, for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Needs feedback
Projects
None yet
Development

No branches or pull requests

2 participants