Skip to content

Commit

Permalink
Merge pull request #10703 from dmarcoux/pin-brakeman-version
Browse files Browse the repository at this point in the history
Pin brakeman version
  • Loading branch information
dmarcoux committed Jan 28, 2021
2 parents 09ca5f1 + 24f99f1 commit 41d58c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Expand Up @@ -84,7 +84,8 @@ jobs:
- run: rm -rf src/api/tmp/rubocop*
- run:
name: Run brakeman
command: sudo gem install --no-format-executable brakeman; brakeman --rails6 -p src/api
# Same brakeman version is pinned in our Dockerfile to have reproducible images (the license forbids us from shipping the gem in our appliance)
command: sudo gem install --no-format-executable brakeman --version 5.0.0; brakeman --rails6 -p src/api
- run:
name: Setup application
command: cd src/api; bundle exec rake dev:prepare assets:precompile RAILS_ENV=test FORCE_EXAMPLE_FILES=1
Expand Down
3 changes: 2 additions & 1 deletion src/api/docker-files/Dockerfile
Expand Up @@ -8,7 +8,8 @@ ARG CONTAINER_USERID

# for lint task
RUN npm install -g jshint
RUN gem install --no-format-executable brakeman
# Same brakeman version is pinned in our CI configuration to have reproducible builds (the license forbids us from shipping the gem in our appliance)
RUN gem install --no-format-executable brakeman --version 5.0.0

# Configure our user
RUN usermod -u $CONTAINER_USERID frontend
Expand Down

0 comments on commit 41d58c4

Please sign in to comment.