Use default options for query params in get_job_id script

What does this MR do?

Sets default values to avoid the nil:NilClass (NoMethodError) exception seen in https://gitlab.com/gitlab-org/gitlab/-/jobs/976220497

/builds/gitlab-org/gitlab/scripts/api/get_job_id.rb:57:in `find_job_with_filtered_pipelines': undefined method `empty?' for nil:NilClass (NoMethodError)
	from /builds/gitlab-org/gitlab/scripts/api/get_job_id.rb:37:in `execute'
	from scripts/api/play_job.rb:26:in `execute'
	from scripts/api/play_job.rb:62:in `<main>'

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Merge request reports

Loading