Skip to content

Commit

Permalink
Merge pull request #4800 from rubyforgood/reminder-deadline
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
awwaiid authored Nov 24, 2024
2 parents 9ae32c4 + 3512f96 commit 55f6ac9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion app/jobs/backup_db_rds.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# to be called from Clock
module BackupDbRds
def run
def self.run
logger = Logger.new($stdout)
logger.info("Performing dump of the database.")

Expand Down
26 changes: 3 additions & 23 deletions config/brakeman.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"warning_type": "Command Injection",
"warning_code": 14,
"fingerprint": "0f98f6aeae590aca0d8eebf04dbd2dcaf4d1252822f138b4bcfe6e03455e5b4a",
"fingerprint": "5dd8c58cca239b1a2527f25255c49c8800a31e5ec8cb8e31e14003fc435dd677",
"check_name": "Execute",
"message": "Possible command injection",
"file": "app/jobs/backup_db_rds.rb",
Expand All @@ -14,7 +14,7 @@
"location": {
"type": "method",
"class": "BackupDbRds",
"method": "run"
"method": "s(:self).run"
},
"user_input": "ENV[\"DIAPER_DB_PASSWORD\"]",
"confidence": "Medium",
Expand Down Expand Up @@ -45,28 +45,8 @@
22
],
"note": ""
},
{
"warning_type": "SQL Injection",
"warning_code": 0,
"fingerprint": "db8503246322c7079274c6aa7e68675a336b4d8dd4fb9c2bb6c566545b139c8a",
"check_name": "SQL",
"message": "Possible SQL injection",
"file": "config/initializers/postgres.rb",
"line": 9,
"link": "https://brakemanscanner.org/docs/warning_types/sql_injection/",
"code": "connection.select_all(\"select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where datname='#{configuration_hash[:database]}' AND state='idle';\")",
"render_path": null,
"location": {
"type": "method",
"class": "PostgreSQLDatabaseTasks",
"method": "drop"
},
"user_input": "configuration_hash[:database]",
"confidence": "Medium",
"note": ""
}
],
"updated": "2024-11-24 09:44:01 -0500",
"updated": "2024-11-24 10:40:00 -0500",
"brakeman_version": "6.2.1"
}

0 comments on commit 55f6ac9

Please sign in to comment.