Skip to content

GCP-XXXX: Add GCP Onboarding Script to Integrations-Management#10

Merged
tedkahwaji merged 2 commits into
mainfrom
teddy.kahwaji/gcp-xxxx/add-gcp
Sep 22, 2025
Merged

GCP-XXXX: Add GCP Onboarding Script to Integrations-Management#10
tedkahwaji merged 2 commits into
mainfrom
teddy.kahwaji/gcp-xxxx/add-gcp

Conversation

@tedkahwaji
Copy link
Copy Markdown
Collaborator

@tedkahwaji tedkahwaji commented Sep 22, 2025

Summary

The following change adds the gcp onboarding script to this repo.

Moved From:

https://github.com/DataDog/experimental/tree/main/teams/gcp-integrations/onboarding

@datadog-official
Copy link
Copy Markdown

datadog-official Bot commented Sep 22, 2025

⚠️ Code Quality    ✅ Code Vulnerabilities    ✅ Library Vulnerabilities

⚠️ Warnings

🛠️ 3 Code quality issues detected

High: python-best-practices/no-exit do not use exit() View rule
gcp/onboarding/setup.py:672
High: python-best-practices/no-exit do not use exit() View rule
gcp/onboarding/setup.py:664
High: python-best-practices/no-exit do not use exit() View rule
gcp/onboarding/setup.py:681

ℹ️ Info

🛡️ No new code vulnerabilities
📚 No new vulnerable libraries detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: acb6d88 | Docs | Was this helpful? Give us feedback!

Comment thread gcp/onboarding/setup.py
print(
f"Workflow ID {workflow_id} has already been used. Please start a new workflow."
)
exit(1)
Copy link
Copy Markdown

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 Bot Sep 22, 2025

Choose a reason for hiding this comment

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

🔴 High: Code Quality Violation

do not use exit() (...read more)

Use sys.exit() instead of exit(). Exit is a builtin and done mostly for the console. sys.exit() is done for program with a proper return argument (see documentation).

Learn More

✨ Generate fix

View in Datadog  Leave us feedback  Documentation

Comment thread gcp/onboarding/setup.py
print(
f"Missing required environment variables: {', '.join(missing_environment_vars)}"
)
exit(1)
Copy link
Copy Markdown

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 Bot Sep 22, 2025

Choose a reason for hiding this comment

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

🔴 High: Code Quality Violation

do not use exit() (...read more)

Use sys.exit() instead of exit(). Exit is a builtin and done mostly for the console. sys.exit() is done for program with a proper return argument (see documentation).

Learn More

✨ Generate fix

View in Datadog  Leave us feedback  Documentation

Comment thread gcp/onboarding/setup.py
ensure_login()
except Exception:
print("You must be logged in to GCloud Shell to run this script.")
exit(1)
Copy link
Copy Markdown

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 Bot Sep 22, 2025

Choose a reason for hiding this comment

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

🔴 High: Code Quality Violation

do not use exit() (...read more)

Use sys.exit() instead of exit(). Exit is a builtin and done mostly for the console. sys.exit() is done for program with a proper return argument (see documentation).

Learn More

✨ Generate fix

View in Datadog  Leave us feedback  Documentation

@tedkahwaji tedkahwaji changed the title move gcp quick start script to public repo GCP-XXXX: Add GCP Onboarding Script to Integrations-Management Sep 22, 2025
@tedkahwaji tedkahwaji marked this pull request as ready for review September 22, 2025 18:56
@tedkahwaji tedkahwaji merged commit dafa12e into main Sep 22, 2025
2 checks passed
@tedkahwaji tedkahwaji deleted the teddy.kahwaji/gcp-xxxx/add-gcp branch September 22, 2025 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants