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

chore(gcp): remove unnecessary default project id #3586

Merged
merged 3 commits into from Mar 21, 2024

Conversation

sergargar
Copy link
Member

Description

Remove unnecessary GCP default project id.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sergargar sergargar requested a review from a team as a code owner March 21, 2024 13:33
@github-actions github-actions bot added the provider/gcp Issues/PRs related with the Google Cloud Platform provider label Mar 21, 2024
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 86.02%. Comparing base (170d555) to head (5b5cede).

Files Patch % Lines
prowler/providers/gcp/gcp_provider.py 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3586      +/-   ##
==========================================
- Coverage   86.03%   86.02%   -0.01%     
==========================================
  Files         690      690              
  Lines       21342    21340       -2     
==========================================
- Hits        18361    18358       -3     
- Misses       2981     2982       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

self.credentials, self.default_project_id = self.__set_credentials__(
credentials_file
)
self.credentials, _ = self.__set_credentials__(credentials_file)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'll be better to catch the return from the __set_credentials__ within that function and just return the credentials object.

Copy link
Member

@jfagoagas jfagoagas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔝

@jfagoagas
Copy link
Member

No backport needed since this is done in this PR #3587

@jfagoagas jfagoagas merged commit e37edee into master Mar 21, 2024
9 of 11 checks passed
@jfagoagas jfagoagas deleted the remove-default-project-id branch March 21, 2024 16:20
pedrooot pushed a commit to pedrooot/prowler that referenced this pull request Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/gcp Issues/PRs related with the Google Cloud Platform provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants