Skip to content

Commit

Permalink
Add env protection
Browse files Browse the repository at this point in the history
  • Loading branch information
lfv89 authored and rosa committed Aug 29, 2024
1 parent a879c2c commit b079b3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/protections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ validations:
- secret
- credentials
- irb
- ENV
forbidden_methods:
Kernel:
- eval
Expand Down
1 change: 1 addition & 0 deletions test/tampering_cases/flagged/ruby/env.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENV['DATABASE_URL']

0 comments on commit b079b3f

Please sign in to comment.