Code samples used on cloud.google.com
This report presents the forensic synthetic code analysis of GoogleCloudPlatform/python-docs-samples, a Jupyter Notebook project with 8,121 GitHub stars. SynthScan v2.0 examined 356,444 lines of code across 5263 source files, recording 9505 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 42.5 places this repository in the Strong AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 9505 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | owlbot.py | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | noxfile_config.py | 1 | # Copyright 2021 Google LLC | COMMENT |
| LOW | noxfile_config.py | 21 | # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py | COMMENT |
| LOW | noxfile-template.py | 1 | # Copyright 2019 Google LLC | COMMENT |
| LOW | noxfile-template.py | 41 | TEST_CONFIG = { | COMMENT |
| LOW | noxfile-template.py | 121 | basename | COMMENT |
| LOW | dataflow/conftest.py | 1 | # Copyright 2021 Google LLC | COMMENT |
| LOW | dataflow/snippets/read_kafka_multi_topic.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | dataflow/snippets/__init__.py | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | dataflow/snippets/noxfile_config.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | dataflow/snippets/noxfile_config.py | 21 | # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py | COMMENT |
| LOW | dataflow/snippets/batch_write_storage.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | dataflow/snippets/write_pubsub.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | dataflow/snippets/read_kafka.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | dataflow/snippets/tests/test_read_kafka.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | dataflow/snippets/tests/__init__.py | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | dataflow/snippets/tests/test_write_pubsub.py | 1 | # !/usr/bin/env python | COMMENT |
| LOW | dataflow/snippets/tests/test_batch_write_storage.py | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | dataflow/gemma/e2e_test.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | dataflow/gemma/custom_model_gemma.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | dataflow/gemma/noxfile_config.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | …/flex-templates/pipeline_with_dependencies/e2e_test.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 1 | # | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 21 | # httpx | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 41 | # via cryptography | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 61 | envoy-data-plane==1.0.3 | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 81 | # google-cloud-core | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 101 | # google-api-core | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 121 | # google-cloud-vision | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 141 | # google-cloud-bigquery | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 161 | # via google-cloud-aiplatform | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 181 | google-resumable-media==2.10.0 | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 201 | grpcio==1.82.0 | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 221 | # grpc-interceptor | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 241 | # via | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 261 | # via keyring | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 281 | # grpclib | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 301 | # google-cloud-spanner | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 321 | # via | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 341 | # google-cloud-spanner | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 361 | # google-cloud-spanner | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 381 | # oauth2client | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 401 | # via | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 421 | # google-cloud-storage | COMMENT |
| LOW | …-templates/pipeline_with_dependencies/requirements.txt | 441 | # via google-cloud-spanner | COMMENT |
| LOW | …lates/pipeline_with_dependencies/requirements-test.txt | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | …ex-templates/pipeline_with_dependencies/pyproject.toml | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | …templates/pipeline_with_dependencies/noxfile_config.py | 1 | # Copyright 2021 Google LLC | COMMENT |
| LOW | …low/flex-templates/pipeline_with_dependencies/setup.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | …flow/flex-templates/pipeline_with_dependencies/main.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | …/pipeline_with_dependencies/src/my_package/__init__.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | …line_with_dependencies/src/my_package/my_transforms.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | …peline_with_dependencies/src/my_package/my_pipeline.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | …/pipeline_with_dependencies/src/my_package/launcher.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | …ine_with_dependencies/src/my_package/utils/__init__.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | …eline_with_dependencies/src/my_package/utils/figlet.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | dataflow/flex-templates/streaming_beam/e2e_test.py | 1 | # Copyright 2021 Google LLC | COMMENT |
| LOW | …taflow/flex-templates/streaming_beam/noxfile_config.py | 1 | # Copyright 2021 Google LLC | COMMENT |
| LOW | …taflow/flex-templates/streaming_beam/noxfile_config.py | 21 | # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py | COMMENT |
| LOW | …taflow/flex-templates/streaming_beam/streaming_beam.py | 1 | #!/usr/bin/env python | COMMENT |
| 4405 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | dataflow/gpu-examples/tensorflow-landsat-prime/main.py | 0 | validates that we are detecting gpus, otherwise raise a runtimeerror. | STRING |
| HIGH | dataflow/gpu-examples/tensorflow-minimal/main.py | 0 | validates that we are detecting gpus, otherwise raise a runtimeerror. | STRING |
| HIGH | dataflow/gpu-examples/tensorflow-landsat/main.py | 0 | validates that we are detecting gpus, otherwise raise a runtimeerror. | STRING |
| HIGH | dataflow/gpu-examples/pytorch-minimal/main.py | 0 | validates that we are detecting gpus, otherwise raise a runtimeerror. | STRING |
| HIGH | dataflow/run_template/main.py | 0 | http cloud function that declares a variable. args: request (flask.request): the request object. <http://flask.pocoo.org | STRING |
| HIGH | functions/helloworld/main.py | 0 | http cloud function that declares a variable. args: request (flask.request): the request object. <http://flask.pocoo.org | STRING |
| HIGH | functions/v2/response_streaming/main.py | 0 | http cloud function that declares a variable. args: request (flask.request): the request object. <http://flask.pocoo.org | STRING |
| HIGH | functions/tips-scopes/main.py | 0 | http cloud function that declares a variable. args: request (flask.request): the request object. <http://flask.pocoo.org | STRING |
| HIGH | kms/snippets/update_key_remove_labels.py | 0 | remove a rotation schedule from an existing key. args: project_id (string): google cloud project id (e.g. 'my-project'). | STRING |
| HIGH | kms/snippets/update_key_add_rotation.py | 0 | remove a rotation schedule from an existing key. args: project_id (string): google cloud project id (e.g. 'my-project'). | STRING |
| HIGH | kms/snippets/update_key_update_labels.py | 0 | remove a rotation schedule from an existing key. args: project_id (string): google cloud project id (e.g. 'my-project'). | STRING |
| HIGH | kms/snippets/update_key_remove_rotation.py | 0 | remove a rotation schedule from an existing key. args: project_id (string): google cloud project id (e.g. 'my-project'). | STRING |
| HIGH | kms/snippets/decrypt_symmetric.py | 0 | calculates the crc32c checksum of the provided data. args: data: the bytes over which the checksum should be calculated. | STRING |
| HIGH | kms/snippets/get_public_key.py | 0 | calculates the crc32c checksum of the provided data. args: data: the bytes over which the checksum should be calculated. | STRING |
| HIGH | kms/snippets/decrypt_asymmetric.py | 0 | calculates the crc32c checksum of the provided data. args: data: the bytes over which the checksum should be calculated. | STRING |
| HIGH | kms/snippets/get_public_key_jwk.py | 0 | calculates the crc32c checksum of the provided data. args: data: the bytes over which the checksum should be calculated. | STRING |
| HIGH | kms/snippets/sign_asymmetric.py | 0 | calculates the crc32c checksum of the provided data. args: data: the bytes over which the checksum should be calculated. | STRING |
| HIGH | kms/snippets/encrypt_symmetric.py | 0 | calculates the crc32c checksum of the provided data. args: data: the bytes over which the checksum should be calculated. | STRING |
| HIGH | video/transcoder/get_job.py | 0 | gets a job. args: project_id: the gcp project id. location: the location this job is in. job_id: the job id. | STRING |
| HIGH | video/transcoder/get_job_state.py | 0 | gets a job. args: project_id: the gcp project id. location: the location this job is in. job_id: the job id. | STRING |
| HIGH | video/transcoder/delete_job.py | 0 | gets a job. args: project_id: the gcp project id. location: the location this job is in. job_id: the job id. | STRING |
| HIGH | video/stitcher/list_vod_ad_tag_details.py | 0 | lists the stitch details for the specified vod session. args: project_id: the gcp project id. location: the location of | STRING |
| HIGH | video/stitcher/list_live_ad_tag_details.py | 0 | lists the stitch details for the specified vod session. args: project_id: the gcp project id. location: the location of | STRING |
| HIGH | video/stitcher/list_vod_stitch_details.py | 0 | lists the stitch details for the specified vod session. args: project_id: the gcp project id. location: the location of | STRING |
| HIGH | video/live-stream/stop_channel.py | 0 | gets a channel. args: project_id: the gcp project id. location: the location of the channel. channel_id: the user-define | STRING |
| HIGH | video/live-stream/delete_channel.py | 0 | gets a channel. args: project_id: the gcp project id. location: the location of the channel. channel_id: the user-define | STRING |
| HIGH | video/live-stream/start_channel.py | 0 | gets a channel. args: project_id: the gcp project id. location: the location of the channel. channel_id: the user-define | STRING |
| HIGH | video/live-stream/get_channel_event.py | 0 | gets a channel. args: project_id: the gcp project id. location: the location of the channel. channel_id: the user-define | STRING |
| HIGH | video/live-stream/get_channel.py | 0 | gets a channel. args: project_id: the gcp project id. location: the location of the channel. channel_id: the user-define | STRING |
| HIGH | video/live-stream/get_input.py | 0 | deletes an input. args: project_id: the gcp project id. location: the location of the input. input_id: the user-defined | STRING |
| HIGH | video/live-stream/update_input.py | 0 | deletes an input. args: project_id: the gcp project id. location: the location of the input. input_id: the user-defined | STRING |
| HIGH | video/live-stream/delete_input.py | 0 | deletes an input. args: project_id: the gcp project id. location: the location of the input. input_id: the user-defined | STRING |
| HIGH | dialogflow/detect_intent_audio.py | 0 | returns the result of detect intent with streaming audio as input. using the same `session_id` between requests allows c | STRING |
| HIGH | dialogflow-cx/detect_intent_audio.py | 0 | returns the result of detect intent with streaming audio as input. using the same `session_id` between requests allows c | STRING |
| HIGH | dialogflow/detect_intent_stream.py | 0 | returns the result of detect intent with streaming audio as input. using the same `session_id` between requests allows c | STRING |
| HIGH | dialogflow-cx/detect_intent_stream.py | 0 | returns the result of detect intent with streaming audio as input. using the same `session_id` between requests allows c | STRING |
| HIGH | dialogflow/detect_intent_texts_with_location.py | 0 | returns the result of detect intent with texts as inputs. using the same `session_id` between requests allows continuati | STRING |
| HIGH | dialogflow/detect_intent_texts.py | 0 | returns the result of detect intent with texts as inputs. using the same `session_id` between requests allows continuati | STRING |
| HIGH | dialogflow-cx/detect_intent_texts.py | 0 | returns the result of detect intent with texts as inputs. using the same `session_id` between requests allows continuati | STRING |
| HIGH | dialogflow/streaming_transcription.py | 0 | opens a recording stream as a generator yielding the audio chunks. | STRING |
| HIGH | speech/microphone/transcribe_streaming_infinite_v2.py | 0 | opens a recording stream as a generator yielding the audio chunks. | STRING |
| HIGH | speech/microphone/transcribe_streaming_mic.py | 0 | opens a recording stream as a generator yielding the audio chunks. | STRING |
| HIGH | speech/microphone/transcribe_streaming_infinite.py | 0 | opens a recording stream as a generator yielding the audio chunks. | STRING |
| HIGH | media-translation/snippets/translate_from_mic.py | 0 | opens a recording stream as a generator yielding the audio chunks. | STRING |
| HIGH | dialogflow-cx/detect_intent_with_sentiment_analysis.py | 0 | returns the result of detect intent with sentiment analysis | STRING |
| HIGH | dialogflow-cx/detect_intent_with_intent_input.py | 0 | returns the result of detect intent with sentiment analysis | STRING |
| HIGH | dialogflow-cx/detect_intent_disabled_webhook.py | 0 | returns the result of detect intent with sentiment analysis | STRING |
| HIGH | dialogflow-cx/webhook_validate_form_parameter_test.py | 0 | flask fixture to pass a flask.request to the test function | STRING |
| HIGH | dialogflow-cx/webhook_log_session_info_test.py | 0 | flask fixture to pass a flask.request to the test function | STRING |
| HIGH | dialogflow-cx/webhook_prebuilt_telecom_test.py | 0 | flask fixture to pass a flask.request to the test function | STRING |
| HIGH | dialogflow-cx/streaming_detect_intent_infinite.py | 0 | start bidirectional streaming from microphone input to speech api | STRING |
| HIGH | speech/microphone/transcribe_streaming_infinite_v2.py | 0 | start bidirectional streaming from microphone input to speech api | STRING |
| HIGH | speech/microphone/transcribe_streaming_infinite.py | 0 | start bidirectional streaming from microphone input to speech api | STRING |
| HIGH | …s/translate_v3_batch_translate_text_with_model_test.py | 0 | create a temporary bucket to store annotation output. | STRING |
| HIGH | …3_batch_translate_text_with_glossary_and_model_test.py | 0 | create a temporary bucket to store annotation output. | STRING |
| HIGH | …les/snippets/translate_v3_batch_translate_text_test.py | 0 | create a temporary bucket to store annotation output. | STRING |
| HIGH | …ranslate_v3_batch_translate_text_with_glossary_test.py | 0 | create a temporary bucket to store annotation output. | STRING |
| HIGH | auth/downscoping/snippets_test.py | 0 | yields a bucket object that is deleted after the test completes. | STRING |
| HIGH | composer/cicd_sample/utils/add_dags_to_composer_test.py | 0 | yields a bucket object that is deleted after the test completes. | STRING |
| HIGH | speech/snippets/speech_to_storage_beta_test.py | 0 | yields a bucket object that is deleted after the test completes. | STRING |
| 556 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | dataflow/snippets/batch_write_storage.py | 31 | # Define a custom pipeline option that specfies the Cloud Storage bucket. | COMMENT |
| MEDIUM | dataflow/snippets/write_pubsub.py | 48 | # Define a custom pipeline option to specify the Pub/Sub topic. | COMMENT |
| MEDIUM | …flow/flex-templates/getting_started/getting_started.py | 25 | # Define a custom pipeline option that specfies the Cloud Storage bucket. | COMMENT |
| MEDIUM | dataflow/run_template/main_test.py | 49 | # Create a fake "app" for generating test request contexts. | COMMENT |
| MEDIUM | privateca/snippets/create_certificate_authority.py | 84 | # Create the CertificateAuthorityRequest. | COMMENT |
| MEDIUM | privateca/snippets/filter_certificates.py | 37 | # Create the certificate request and set the filter condition. | COMMENT |
| MEDIUM | privateca/snippets/update_certificate_authority.py | 49 | # Create a request to update the CA. | COMMENT |
| MEDIUM | privateca/snippets/delete_certificate_authority.py | 52 | # Create the DeleteCertificateAuthorityRequest. | COMMENT |
| MEDIUM | privateca/snippets/enable_certificate_authority.py | 40 | # Create the Enable Certificate Authority Request. | COMMENT |
| MEDIUM | privateca/snippets/create_certificate.py | 90 | # Create the Certificate Request. | COMMENT |
| MEDIUM | privateca/snippets/create_certificate_csr.py | 57 | # Create the Certificate Request. | COMMENT |
| MEDIUM | privateca/snippets/monitor_certificate_authority.py | 44 | # Create a notification channel. | COMMENT |
| MEDIUM | privateca/snippets/undelete_certificate_authority.py | 45 | # Create the Request. | COMMENT |
| MEDIUM | privateca/snippets/create_subordinate_ca.py | 88 | # Create the CertificateAuthorityRequest. | COMMENT |
| MEDIUM | privateca/snippets/disable_certificate_authority.py | 39 | # Create the Disable Certificate Authority Request. | COMMENT |
| MEDIUM | privateca/snippets/delete_ca_pool.py | 36 | # Create the Delete request. | COMMENT |
| MEDIUM | privateca/snippets/create_ca_pool.py | 40 | # Create the pool request. | COMMENT |
| MEDIUM | privateca/snippets/create_ca_pool.py | 47 | # Create the CA pool. | COMMENT |
| MEDIUM | …rpriseknowledgegraph/search/search_public_kg_sample.py | 41 | # Create a client | COMMENT |
| MEDIUM | enterpriseknowledgegraph/search/search_sample.py | 41 | # Create a client | COMMENT |
| MEDIUM | enterpriseknowledgegraph/search/lookup_sample.py | 37 | # Create a client | COMMENT |
| MEDIUM | …rpriseknowledgegraph/search/lookup_public_kg_sample.py | 37 | # Create a client | COMMENT |
| MEDIUM | …onciliation/cancel_entity_reconciliation_job_sample.py | 29 | # Create a client | COMMENT |
| MEDIUM | …conciliation/list_entity_reconciliation_jobs_sample.py | 26 | # Create a client | COMMENT |
| MEDIUM | …onciliation/delete_entity_reconciliation_job_sample.py | 29 | # Create a client | COMMENT |
| MEDIUM | …reconciliation/get_entity_reconciliation_job_sample.py | 29 | # Create a client | COMMENT |
| MEDIUM | …onciliation/create_entity_reconciliation_job_sample.py | 41 | # Create a client | COMMENT |
| MEDIUM | …nter-insights/snippets/create_conversation_with_ttl.py | 15 | # Create a conversation with a TTL. | COMMENT |
| MEDIUM | …insights/snippets/test_create_phrase_matcher_any_of.py | 35 | # Create a phrase matcher. | COMMENT |
| MEDIUM⚡ | …ct-center-insights/snippets/test_export_to_bigquery.py | 40 | # Create a BigQuery dataset. | COMMENT |
| MEDIUM⚡ | …ct-center-insights/snippets/test_export_to_bigquery.py | 49 | # Create a BigQuery table under the created dataset. | COMMENT |
| MEDIUM | …t-center-insights/snippets/test_create_conversation.py | 30 | # Create a conversation | COMMENT |
| MEDIUM | …insights/snippets/test_create_phrase_matcher_all_of.py | 35 | # Create a phrase matcher. | COMMENT |
| MEDIUM | contact-center-insights/snippets/test_get_operation.py | 38 | # Create a conversation. | COMMENT |
| MEDIUM | contact-center-insights/snippets/test_get_operation.py | 64 | # Create an analysis. | COMMENT |
| MEDIUM | …ct-center-insights/snippets/test_create_issue_model.py | 56 | # Create an issue model. | COMMENT |
| MEDIUM | …ntact-center-insights/snippets/test_create_analysis.py | 33 | # Create a conversation. | COMMENT |
| MEDIUM | …insights/snippets/test_create_conversation_with_ttl.py | 30 | # Create a conversation | COMMENT |
| MEDIUM | kms/snippets/update_key_remove_labels.py | 35 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/update_key_add_rotation.py | 38 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/create_key_for_import.py | 34 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/import_manually_wrapped_key.py | 57 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/update_key_update_labels.py | 35 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/disable_key_version.py | 36 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/create_import_job.py | 32 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/get_retired_resource.py | 35 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/update_key_set_primary.py | 36 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/delete_key_version.py | 38 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/create_key_mac.py | 39 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/restore_key_version.py | 36 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/verify_mac.py | 43 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/update_key_remove_rotation.py | 35 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/check_state_import_job.py | 32 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/iam_get_policy.py | 36 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/iam_add_member.py | 37 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/create_key_asymmetric_decrypt.py | 39 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/generate_random_bytes.py | 38 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/create_key_labels.py | 36 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/iam_remove_member.py | 37 | # Create the client. | COMMENT |
| MEDIUM | kms/snippets/verify_asymmetric_rsa.py | 61 | # Create the client. | COMMENT |
| 888 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | AUTHORING_GUIDE.md | 575 | def setup_and_teardown_cluster(): | CODE |
| LOW | noxfile-template.py | 113 | def _determine_local_import_names(start_dir: str) -> list[str]: | CODE |
| LOW | dataflow/conftest.py | 186 | def dataflow_find_job_by_name(project: str, location: str, job_name: str) -> str: | CODE |
| LOW | dataflow/conftest.py | 202 | def dataflow_wait_until_running(project: str, location: str, job_id: str) -> str: | CODE |
| LOW | dataflow/conftest.py | 759 | def dataflow_flex_template_build( | CODE |
| LOW | dataflow/conftest.py | 790 | def dataflow_flex_template_run( | CODE |
| LOW | dataflow/conftest.py | 837 | def dataflow_extensible_template_run( | CODE |
| LOW | dataflow/snippets/tests/test_read_kafka.py | 105 | def test_read_kafka_multi_topic(docker_client: DockerClient, tmp_path: Path, file_name_prefix: str) -> None: | CODE |
| LOW | dataflow/snippets/tests/test_batch_write_storage.py | 41 | def test_write_to_cloud_storage(setup_and_teardown: None) -> None: | CODE |
| LOW | dataflow/gemma/custom_model_gemma.py | 51 | def share_model_across_processes(self) -> bool: | CODE |
| LOW | dataflow/gemma/README.md | 90 | def share_model_across_processes(self) -> bool: | CODE |
| LOW | …/flex-templates/pipeline_with_dependencies/e2e_test.py | 65 | def test_flex_template_with_dependencies_and_custom_container( | CODE |
| LOW | dataflow/flex-templates/streaming_beam/e2e_test.py | 90 | def test_flex_template_streaming_beam(utils: Utils, dataflow_job_id: str) -> None: | CODE |
| LOW | dataflow/custom-containers/minimal/e2e_test.py | 52 | def test_custom_container_minimal(utils: Utils, run_dataflow_job: str) -> None: | CODE |
| LOW | dataflow/custom-containers/ubuntu/e2e_test.py | 52 | def test_custom_container_ubuntu(utils: Utils, run_dataflow_job: str) -> None: | CODE |
| LOW | dataflow/custom-containers/miniconda/e2e_test.py | 52 | def test_custom_container_miniconda(utils: Utils, run_dataflow_job: str) -> None: | CODE |
| LOW | dataflow/gemma-flex-template/custom_model_gemma.py | 71 | def share_model_across_processes(self) -> bool: | CODE |
| LOW | dataflow/run-inference/tests/e2e_test.py | 130 | def test_load_state_dict_vertex( | CODE |
| LOW | dataflow/run_template/main_test.py | 120 | def test_run_template_python_empty_args(app, dataflow_job_name): | CODE |
| LOW | dataflow/run_template/main_test.py | 141 | def test_run_template_http_empty_args(app): | CODE |
| LOW | dataflow/run_template/main_test.py | 150 | def test_run_template_http_url(app, dataflow_job_name): | CODE |
| LOW | dataflow/run_template/main_test.py | 167 | def test_run_template_http_data(app, dataflow_job_name): | CODE |
| LOW | dataflow/run_template/main_test.py | 184 | def test_run_template_http_json(app, dataflow_job_name): | CODE |
| LOW | privateca/snippets/create_certificate_authority.py | 22 | def create_certificate_authority( | CODE |
| LOW | privateca/snippets/conftest.py | 130 | def deleted_certificate_authority(ca_pool): | CODE |
| LOW | privateca/snippets/delete_certificate_authority.py | 21 | def delete_certificate_authority( | CODE |
| LOW | privateca/snippets/enable_certificate_authority.py | 21 | def enable_certificate_authority( | CODE |
| LOW | privateca/snippets/delete_certificate_template.py | 21 | def delete_certificate_template( | CODE |
| LOW | privateca/snippets/test_crud_certificate_templates.py | 37 | def test_create_delete_certificate_template(capsys: typing.Any) -> None: | CODE |
| LOW | privateca/snippets/test_crud_certificate_templates.py | 53 | def test_list_certificate_templates(certificate_template, capsys: typing.Any) -> None: | CODE |
| LOW | privateca/snippets/test_crud_certificate_templates.py | 64 | def test_update_certificate_template(certificate_template, capsys: typing.Any) -> None: | CODE |
| LOW | privateca/snippets/test_certificate_authorities.py | 75 | def test_enable_and_disable_certificate_authority( | CODE |
| LOW | privateca/snippets/test_certificate_authorities.py | 95 | def test_undelete_certificate_authority( | CODE |
| LOW | privateca/snippets/test_certificate_authorities.py | 115 | def test_update_certificate_authority( | CODE |
| LOW | privateca/snippets/test_certificate_authorities.py | 128 | def test_create_monitor_ca_policy(capsys: typing.Any) -> None: | CODE |
| LOW | privateca/snippets/list_certificate_authorities.py | 21 | def list_certificate_authorities( | CODE |
| LOW | privateca/snippets/list_certificate_templates.py | 21 | def list_certificate_templates(project_id: str, location: str) -> None: | CODE |
| LOW | privateca/snippets/test_subordinate_ca.py | 56 | def test_subordinate_certificate_authority( | CODE |
| LOW | privateca/snippets/update_ca_pool_issuance_policy.py | 23 | def update_ca_pool_issuance_policy( | CODE |
| LOW | privateca/snippets/undelete_certificate_authority.py | 21 | def undelete_certificate_authority( | CODE |
| LOW | privateca/snippets/test_certificates.py | 44 | def test_create_and_revoke_certificate_authority( | CODE |
| LOW | privateca/snippets/create_certificate_template.py | 22 | def create_certificate_template( | CODE |
| LOW | privateca/snippets/update_certificate_template.py | 22 | def update_certificate_template( | CODE |
| LOW | privateca/snippets/test_ca_pools.py | 73 | def test_update_ca_pool_issuance_policy(ca_pool, capsys: typing.Any) -> None: | CODE |
| LOW | privateca/snippets/disable_certificate_authority.py | 21 | def disable_certificate_authority( | CODE |
| LOW | webrisk/snippets/test_basic_samples.py | 28 | def test_search_uri_with_threat() -> None: | CODE |
| LOW | webrisk/snippets/test_basic_samples.py | 36 | def test_search_uri_without_threat() -> None: | CODE |
| LOW | webrisk/snippets/test_basic_samples.py | 60 | def test_compute_threatdiff_list() -> None: | CODE |
| LOW | …onciliation/cancel_entity_reconciliation_job_sample.py | 26 | def cancel_entity_reconciliation_job_sample( | CODE |
| LOW | …liation/list_entity_reconciliation_jobs_sample_test.py | 24 | def test_list_entity_reconciliation_jobs(capsys): | CODE |
| LOW | …conciliation/list_entity_reconciliation_jobs_sample.py | 25 | def list_entity_reconciliation_jobs_sample(project_id: str, location: str) -> None: | CODE |
| LOW | …ciliation/get_entity_reconciliation_job_sample_test.py | 27 | def test_get_entity_reconciliation_job(capsys): | CODE |
| LOW | …iation/delete_entity_reconciliation_job_sample_test.py | 27 | def test_delete_entity_reconciliation_job(capsys): | CODE |
| LOW | …onciliation/delete_entity_reconciliation_job_sample.py | 26 | def delete_entity_reconciliation_job_sample( | CODE |
| LOW | …iation/cancel_entity_reconciliation_job_sample_test.py | 27 | def test_cancel_entity_reconciliation_job(capsys): | CODE |
| LOW | …iation/create_entity_reconciliation_job_sample_test.py | 32 | def test_create_entity_reconciliation_job(capsys): | CODE |
| LOW | …reconciliation/get_entity_reconciliation_job_sample.py | 26 | def get_entity_reconciliation_job_sample( | CODE |
| LOW | …onciliation/create_entity_reconciliation_job_sample.py | 32 | def create_entity_reconciliation_job_sample( | CODE |
| LOW | …nter-insights/snippets/create_conversation_with_ttl.py | 21 | def create_conversation_with_ttl( | CODE |
| LOW | …insights/snippets/test_create_phrase_matcher_any_of.py | 45 | def test_create_phrase_matcher_any_of(capsys, phrase_matcher_any_of): | CODE |
| 2271 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | dataflow/gpu-examples/tensorflow-landsat-prime/main.py | 133 | Gets the Cloud Storage paths for each band in a Landsat scene. Args: scene: Landsat 8 scene ID. ban | STRING |
| HIGH | dataflow/gpu-examples/tensorflow-landsat/main.py | 127 | Gets the Cloud Storage paths for each band in a Landsat scene. Args: scene: Landsat 8 scene ID. ban | STRING |
| HIGH | …anagement_api/event_threat_detection_custom_modules.py | 91 | Retrieves a Event Threat Detection custom module. Args: parent: Use any one of the following options: | STRING |
| HIGH | …anagement_api/event_threat_detection_custom_modules.py | 121 | Retrieves list of Event Threat Detection custom module. Args: parent: Use any one of the following opti | STRING |
| HIGH | …anagement_api/event_threat_detection_custom_modules.py | 198 | Deletes an Event Threat Detection custom module. Args: parent: Use any one of the following options: | STRING |
| HIGH | …anagement_api/event_threat_detection_custom_modules.py | 227 | Retrieves an Event Threat Detection custom module using parent and module id as parameters. Args: paren | STRING |
| HIGH | …anagement_api/event_threat_detection_custom_modules.py | 257 | Retrieves list of Event Threat Detection custom module. This includes resident modules defined at the scope of | STRING |
| HIGH | …anagement_api/event_threat_detection_custom_modules.py | 299 | Retrieves list of all resident Event Threat Detection custom modules and all of its descendants. Args: | STRING |
| HIGH | …gement_api/security_health_analytics_custom_modules.py | 104 | Retrieves a Security Health Analytics custom module. Args: parent: Use any one of the following options | STRING |
| HIGH | …gement_api/security_health_analytics_custom_modules.py | 135 | Retrieves list of Security Health Analytics custom module. Args: parent: Use any one of the following o | STRING |
| HIGH | …gement_api/security_health_analytics_custom_modules.py | 173 | Deletes a Security Health Analytics custom module. Args: parent: Use any one of the following options: | STRING |
| HIGH | …gement_api/security_health_analytics_custom_modules.py | 202 | Updates Security Health Analytics custom module. Args: parent: Use any one of the following options: | STRING |
| HIGH | …gement_api/security_health_analytics_custom_modules.py | 248 | Retrieves a Security Health Analytics custom module using parent and module id as parameters. Args: par | STRING |
| HIGH | …gement_api/security_health_analytics_custom_modules.py | 280 | Retrieves list of all resident Security Health Analytics custom modules and all of its descendants. Args: | STRING |
| HIGH | …gement_api/security_health_analytics_custom_modules.py | 319 | Retrieves list of all Security Health Analytics custom modules. This includes resident modules defined at the s | STRING |
| HIGH | …ter/snippets_management_api/security_center_service.py | 24 | Gets service settings for the specified Security Command Center service. Args: parent: Use any one of t | STRING |
| HIGH | …ter/snippets_management_api/security_center_service.py | 58 | Returns a list of all Security Command Center services for the given parent. Args: parent: Use any one | STRING |
| HIGH | …control/hierarchical-namespace/delete_empty_folders.py | 82 | Extracts bucket-relative path and depth from a GCS folder resource name. The "simple path" is relative to the bucke | STRING |
| HIGH | …nd-planet-ai/land-cover-classification/serving/main.py | 46 | Gets a prediction from the model. Args: lon: Longitude of the point of interest. lat: Latitude of t | STRING |
| HIGH | …nd-planet-ai/land-cover-classification/serving/data.py | 152 | Fetches a patch of pixels from Earth Engine. It retries if we get error "429: Too Many Requests". Args: | STRING |
| HIGH | …ather-forecasting/serving/weather-data/weather/data.py | 197 | Fetches a patch of pixels from Earth Engine. It retries if we get error "429: Too Many Requests". Args: | STRING |
| HIGH | compute/client_library/snippets/snapshots/delete.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | compute/client_library/snippets/snapshots/create.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …ent_library/snippets/snapshots/schedule_remove_disk.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …e/client_library/snippets/snapshots/schedule_create.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …ent_library/snippets/snapshots/schedule_attach_disk.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …e/client_library/snippets/snapshots/schedule_update.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …e/client_library/snippets/snapshots/schedule_delete.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …/client_library/snippets/snapshots/delete_by_filter.py | 37 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | compute/client_library/snippets/images/delete.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | compute/client_library/snippets/images/create.py | 37 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …te/client_library/snippets/images/create_from_image.py | 36 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …client_library/snippets/images/create_from_snapshot.py | 36 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …ient_library/snippets/images/set_deprecation_status.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …e/client_library/snippets/instance_templates/delete.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …ry/snippets/instance_templates/create_from_instance.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …e/client_library/snippets/instance_templates/create.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …instance_templates/create_reservation_from_template.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …rary/snippets/instance_templates/create_with_subnet.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …_regional_template/create_compute_regional_template.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …_regional_template/delete_compute_regional_template.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …ary/snippets/operations/wait_for_extended_operation.py | 34 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | compute/client_library/snippets/firewall/delete.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | compute/client_library/snippets/firewall/patch.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | compute/client_library/snippets/firewall/create.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | compute/client_library/snippets/firewall/windows_kms.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …ary/snippets/disks/clone_encrypted_disk_managed_key.py | 36 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | compute/client_library/snippets/disks/delete.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | compute/client_library/snippets/disks/resize_disk.py | 37 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …ute/client_library/snippets/disks/create_from_image.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …pute/client_library/snippets/disks/create_hyperdisk.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …ute/client_library/snippets/disks/autodelete_change.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …library/snippets/disks/create_secondary_region_disk.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …t_library/snippets/disks/attach_regional_disk_force.py | 36 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …_library/snippets/disks/regional_create_from_source.py | 36 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …mpute/client_library/snippets/disks/regional_delete.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …t_library/snippets/disks/attach_regional_disk_to_vm.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …/client_library/snippets/disks/clone_encrypted_disk.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …ute/client_library/snippets/disks/create_empty_disk.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| HIGH | …lient_library/snippets/disks/create_replicated_disk.py | 35 | Waits for the extended (long-running) operation to complete. If the operation is successful, it will return it | STRING |
| 72 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | noxfile-template.py | 15 | CODE | |
| LOW | noxfile-template.py | 16 | CODE | |
| LOW | dataflow/conftest.py | 13 | CODE | |
| LOW | …taflow/flex-templates/streaming_beam/streaming_beam.py | 23 | CODE | |
| LOW | dataflow/gpu-examples/tensorflow-landsat-prime/main.py | 51 | CODE | |
| LOW | dataflow/gpu-examples/tensorflow-minimal/main.py | 15 | CODE | |
| LOW | dataflow/gpu-examples/tensorflow-landsat/main.py | 51 | CODE | |
| LOW | dataflow/gpu-examples/pytorch-minimal/main.py | 15 | CODE | |
| LOW | dataflow/custom-containers/minimal/main.py | 17 | CODE | |
| LOW | dataflow/custom-containers/ubuntu/main.py | 17 | CODE | |
| LOW | dataflow/custom-containers/miniconda/main.py | 17 | CODE | |
| LOW | dataflow/run-inference/download_model.py | 17 | CODE | |
| LOW | dataflow/run-inference/main.py | 17 | CODE | |
| LOW | dataflow/run-inference/tests/e2e_test.py | 30 | CODE | |
| LOW | …rpriseknowledgegraph/search/search_public_kg_sample.py | 18 | CODE | |
| LOW | enterpriseknowledgegraph/search/search_sample.py | 18 | CODE | |
| LOW | enterpriseknowledgegraph/search/lookup_sample.py | 18 | CODE | |
| LOW | …rpriseknowledgegraph/search/lookup_public_kg_sample.py | 18 | CODE | |
| LOW | bigquery_storage/to_dataframe/jupyter_test.py | 15 | CODE | |
| LOW | bigquery_storage/pyarrow/append_rows_with_arrow.py | 16 | CODE | |
| LOW | dialogflow/detect_intent_texts_with_location_test.py | 15 | CODE | |
| LOW | dialogflow/detect_intent_audio_test.py | 15 | CODE | |
| LOW | dialogflow/detect_intent_knowledge_test.py | 15 | CODE | |
| LOW | dialogflow/conversation_profile_management_test.py | 15 | CODE | |
| LOW | …gflow/detect_intent_with_texttospeech_response_test.py | 15 | CODE | |
| LOW | dialogflow/detect_intent_stream_test.py | 15 | CODE | |
| LOW | dialogflow/create_knowledge_base_test.py | 15 | CODE | |
| LOW | dialogflow/detect_intent_texts_test.py | 15 | CODE | |
| LOW | dialogflow/intent_management_test.py | 15 | CODE | |
| LOW | …alogflow/detect_intent_with_sentiment_analysis_test.py | 15 | CODE | |
| LOW | dialogflow/create_document_test.py | 15 | CODE | |
| LOW | dialogflow-cx/detect_intent_audio_test.py | 17 | CODE | |
| LOW | …ow-cx/streaming_detect_intent_partial_response_test.py | 17 | CODE | |
| LOW | dialogflow-cx/detect_intent_stream_test.py | 17 | CODE | |
| LOW | dialogflow-cx/streaming_detect_intent_infinite.py | 56 | CODE | |
| LOW | dialogflow-cx/detect_intent_with_intent_input_test.py | 17 | CODE | |
| LOW | …gflow-cx/detect_intent_synthesize_tts_response_test.py | 17 | CODE | |
| LOW | dialogflow-cx/detect_intent_texts_test.py | 17 | CODE | |
| LOW | dialogflow-cx/detect_intent_disabled_webhook_test.py | 17 | CODE | |
| LOW | …gflow-cx/detect_intent_with_sentiment_analysis_test.py | 17 | CODE | |
| LOW | dialogflow-cx/detect_intent_event_test.py | 17 | CODE | |
| LOW | service_extensions/callouts/add_header/service_pb2.py | 15 | CODE | |
| LOW | service_extensions/callouts/add_header/service_pb2.py | 16 | CODE | |
| LOW | service_extensions/callouts/add_header/service_pb2.py | 17 | CODE | |
| LOW | service_extensions/callouts/add_header/test_server.py | 14 | CODE | |
| LOW | translate/samples/snippets/snippets.py | 24 | CODE | |
| LOW | composer/conftest.py | 17 | CODE | |
| LOW | composer/tools/composer_dags.py | 18 | CODE | |
| LOW | composer/workflows/pubsub_trigger_response_dag.py | 20 | CODE | |
| LOW | composer/cicd_sample/utils/add_dags_to_composer.py | 16 | CODE | |
| LOW | composer/rest/composer2/composer2_airflow_rest_api.py | 22 | CODE | |
| LOW | appengine/flexible/django_cloudsql/polls/test_polls.py | 15 | CODE | |
| LOW | appengine/flexible/storage/main.py | 16 | CODE | |
| LOW | appengine/standard/download-appengine-sdk.py | 17 | CODE | |
| LOW | appengine/standard/ndb/queries/snippets_test.py | 1 | CODE | |
| LOW | appengine/standard/ndb/properties/snippets.py | 1 | CODE | |
| LOW | appengine/standard/i18n/i18n_utils.py | 22 | CODE | |
| LOW | appengine/standard_python3/django/polls/views.py | 15 | CODE | |
| LOW | …thon-db-dtypes-pandas/snippets/pandas_date_and_time.py | 23 | CODE | |
| LOW | bigquery/remote-function/translate/main.py | 16 | CODE | |
| 239 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dataflow/conftest.py | 555 | except Exception as e: | CODE |
| LOW | dataflow/conftest.py | 693 | except Exception as e: | CODE |
| MEDIUM | dataflow/conftest.py | 680 | def job_is_done() -> bool: | CODE |
| LOW | dataflow/run_template/main_test.py | 93 | except Exception as e: | CODE |
| MEDIUM | privateca/snippets/update_ca_pool_issuance_policy.py | 94 | print("Error in updating CA Pool Issuance policy! Please try again!") | CODE |
| MEDIUM | privateca/snippets/update_certificate_template.py | 84 | print("Error in updating certificate template!") | CODE |
| LOW | error_reporting/snippets/report_exception.py | 26 | except Exception: | CODE |
| LOW | error_reporting/fluent_on_compute/main.py | 38 | except Exception: | CODE |
| LOW | asset/snippets/quickstart_exportassets_test.py | 50 | except Exception as e: | CODE |
| LOW⚡ | asset/snippets/quickstart_batchgetassetshistory_test.py | 44 | except Exception as e: | CODE |
| LOW | …nippets/quickstart_analyzeiampolicylongrunning_test.py | 50 | except Exception as e: | CODE |
| LOW | …center/snippets_v2/snippets_notification_configs_v2.py | 245 | except Exception as e: | CODE |
| MEDIUM | …center/snippets_v2/snippets_notification_configs_v2.py | 230 | def callback(message): | CODE |
| MEDIUM⚡ | …anagement_api/event_threat_detection_custom_modules.py | 291 | print(f"An error occurred while listing custom modules: {e}") | CODE |
| MEDIUM⚡ | …anagement_api/event_threat_detection_custom_modules.py | 331 | print(f"An error occurred while listing custom modules: {e}") | CODE |
| LOW⚡ | …anagement_api/event_threat_detection_custom_modules.py | 290 | except Exception as e: | CODE |
| LOW⚡ | …anagement_api/event_threat_detection_custom_modules.py | 330 | except Exception as e: | CODE |
| LOW | …anagement_api/event_threat_detection_custom_modules.py | 189 | except Exception as e: | CODE |
| LOW | …anagement_api/event_threat_detection_custom_modules.py | 389 | except Exception as e: | STRING |
| MEDIUM⚡ | …gement_api/security_health_analytics_custom_modules.py | 166 | print(f"An error occurred while listing custom modules: {e}") | CODE |
| MEDIUM⚡ | …gement_api/security_health_analytics_custom_modules.py | 239 | print(f"An error occurred while updating the custom module: {e}") | CODE |
| MEDIUM⚡ | …gement_api/security_health_analytics_custom_modules.py | 311 | print(f"An error occurred while listing custom modules: {e}") | CODE |
| MEDIUM⚡ | …gement_api/security_health_analytics_custom_modules.py | 353 | print(f"An error occurred while listing custom modules: {e}") | CODE |
| LOW⚡ | …gement_api/security_health_analytics_custom_modules.py | 165 | except Exception as e: | CODE |
| LOW⚡ | …gement_api/security_health_analytics_custom_modules.py | 238 | except Exception as e: | CODE |
| LOW⚡ | …gement_api/security_health_analytics_custom_modules.py | 310 | except Exception as e: | CODE |
| LOW⚡ | …gement_api/security_health_analytics_custom_modules.py | 352 | except Exception as e: | CODE |
| LOW | …ment_api/event_threat_detection_custom_modules_test.py | 104 | except Exception as e: | CODE |
| LOW | …ment_api/event_threat_detection_custom_modules_test.py | 116 | except Exception as e: | CODE |
| LOW | …ment_api/event_threat_detection_custom_modules_test.py | 256 | except Exception as e: | CODE |
| LOW | …t_api/security_health_analytics_custom_modules_test.py | 101 | except Exception as e: | CODE |
| LOW | …t_api/security_health_analytics_custom_modules_test.py | 113 | except Exception as e: | CODE |
| LOW | …t_api/security_health_analytics_custom_modules_test.py | 237 | except Exception as e: | CODE |
| LOW | …ter/snippets_management_api/security_center_service.py | 90 | except Exception as e: | CODE |
| LOW | …ter/snippets_management_api/security_center_service.py | 134 | except Exception as e: | CODE |
| MEDIUM | dialogflow/participant_management.py | 78 | print(f"Error: {suggestion_result.error.message}") | CODE |
| MEDIUM | dialogflow/participant_management.py | 96 | print(f"Error: {suggestion_result.error.message}") | CODE |
| LOW | dialogflow-cx/streaming_detect_intent_infinite.py | 429 | except Exception as e: | CODE |
| LOW | dialogflow-cx/streaming_detect_intent_infinite.py | 494 | except Exception as e: | CODE |
| LOW | dialogflow-cx/streaming_detect_intent_infinite.py | 543 | except Exception as e: | CODE |
| LOW | cloud-media-livestream/keypublisher/main.py | 166 | except Exception as ex: | CODE |
| MEDIUM | firestore/cloud-client/snippets_test.py | 465 | def test_compound_query_invalid_multi_field(): | CODE |
| MEDIUM | firestore/cloud-client/snippets_test.py | 473 | def test_compound_query_single_clause(): | CODE |
| MEDIUM | firestore/cloud-client/snippets_test.py | 481 | def test_compound_query_valid_single_field(): | CODE |
| LOW⚡ | firestore/cloud-client/snippets_test.py | 91 | except Exception as e: | CODE |
| LOW⚡ | firestore/cloud-client/snippets_test.py | 469 | except Exception: | CODE |
| LOW⚡ | firestore/cloud-client/snippets_test.py | 477 | except Exception: | CODE |
| LOW⚡ | firestore/cloud-client/snippets_test.py | 485 | except Exception: | CODE |
| LOW | firestore/cloud-client/snippets_test.py | 77 | except Exception as e: | CODE |
| LOW | auth/service-to-service/main.py | 30 | except Exception as e: | CODE |
| LOW | auth/custom-credentials/okta/snippets.py | 133 | except Exception as e: | CODE |
| MEDIUM | auth/custom-credentials/okta/snippets.py | 99 | def main(): | CODE |
| MEDIUM | auth/custom-credentials/aws/snippets.py | 108 | print(f"Error: '{secrets_file}' is not valid JSON.", file=sys.stderr) | CODE |
| LOW | auth/custom-credentials/aws/snippets.py | 148 | except Exception as e: | CODE |
| LOW | auth/cloud-client-temp/custom_aws_supplier.py | 112 | except Exception as e: | CODE |
| LOW | composer/airflow_1_samples/airflow_db_cleanup.py | 174 | except Exception as e: | CODE |
| LOW | composer/airflow_1_samples/airflow_db_cleanup.py | 191 | except Exception as e: | CODE |
| LOW | composer/airflow_1_samples/airflow_db_cleanup.py | 209 | except Exception as e: | CODE |
| LOW | composer/workflows/airflow_db_cleanup.py | 189 | except Exception as e: | CODE |
| LOW | composer/workflows/airflow_db_cleanup.py | 206 | except Exception as e: | CODE |
| 158 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | owlbot.py | 98 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | owlbot.py | 100 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/tensorflow-landsat-prime/run.yaml | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/tensorflow-landsat-prime/run.yaml | 26 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …aflow/gpu-examples/tensorflow-landsat-prime/build.yaml | 15 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …aflow/gpu-examples/tensorflow-landsat-prime/build.yaml | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/tensorflow-minimal/run.yaml | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/tensorflow-minimal/run.yaml | 26 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/tensorflow-minimal/build.yaml | 15 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/tensorflow-minimal/build.yaml | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/tensorflow-landsat/run.yaml | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/tensorflow-landsat/run.yaml | 26 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/tensorflow-landsat/build.yaml | 15 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/tensorflow-landsat/build.yaml | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/pytorch-minimal/run.yaml | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/pytorch-minimal/run.yaml | 26 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/pytorch-minimal/build.yaml | 15 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/gpu-examples/pytorch-minimal/build.yaml | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/custom-containers/minimal/run.yaml | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/custom-containers/minimal/run.yaml | 26 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/custom-containers/ubuntu/run.yaml | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/custom-containers/ubuntu/run.yaml | 26 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/custom-containers/miniconda/run.yaml | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | dataflow/custom-containers/miniconda/run.yaml | 26 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | composer/airflow_1_samples/bq_copy_across_locations.py | 33 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | composer/airflow_1_samples/bq_copy_across_locations.py | 35 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/airflow_1_samples/bq_copy_across_locations.py | 48 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/airflow_1_samples/bq_copy_across_locations.py | 50 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/airflow_1_samples/bq_copy_across_locations.py | 68 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/airflow_1_samples/bq_copy_across_locations.py | 70 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/airflow_1_samples/bq_copy_across_locations.py | 79 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/airflow_1_samples/bq_copy_across_locations.py | 81 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/airflow_1_samples/bq_copy_across_locations.py | 85 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/airflow_1_samples/bq_copy_across_locations.py | 87 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/airflow_1_samples/bq_copy_across_locations.py | 114 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/airflow_1_samples/bq_copy_across_locations.py | 116 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | composer/workflows/bq_copy_across_locations.py | 33 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | composer/workflows/bq_copy_across_locations.py | 35 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/workflows/bq_copy_across_locations.py | 48 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/workflows/bq_copy_across_locations.py | 50 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/workflows/bq_copy_across_locations.py | 68 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/workflows/bq_copy_across_locations.py | 70 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/workflows/bq_copy_across_locations.py | 79 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/workflows/bq_copy_across_locations.py | 81 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/workflows/bq_copy_across_locations.py | 85 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/workflows/bq_copy_across_locations.py | 87 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/workflows/bq_copy_across_locations.py | 114 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | composer/workflows/bq_copy_across_locations.py | 116 | # -------------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dataflow/run_template/main_test.py | 91 | # if we don't find a job, just return | COMMENT |
| MEDIUM | dialogflow-cx/streaming_detect_intent_infinite.py | 413 | if e.code == 500: # Consider making this more robust | CODE |
| LOW | dialogflow-cx/webhook_prebuilt_telecom.py | 69 | # If bill hike amount is given - we just add it to the total bill | COMMENT |
| LOW | auth/custom-credentials/aws/snippets.py | 127 | # will be the values we just set. In a containerized run, they will be | COMMENT |
| MEDIUM | composer/airflow_1_samples/kubernetes_pod_operator.py | 56 | # for best practices | COMMENT |
| MEDIUM | composer/airflow_1_samples/unit_testing_cycle.py | 24 | # for best practices | COMMENT |
| MEDIUM | composer/airflow_1_samples/hadoop_tutorial.py | 39 | # for best practices | COMMENT |
| MEDIUM | composer/airflow_1_samples/unit_testing_variables.py | 25 | # for best practices | COMMENT |
| MEDIUM | composer/airflow_1_samples/quickstart.py | 23 | # for best practices | COMMENT |
| MEDIUM⚡ | composer/airflow_1_samples/bq_copy_across_locations.py | 54 | # for best practices | COMMENT |
| MEDIUM | composer/workflows/kubernetes_pod_operator.py | 57 | # for best practices | COMMENT |
| MEDIUM | composer/workflows/airflow_db_cleanup.py | 106 | # It's converted to facilitate version comparison. | COMMENT |
| MEDIUM | composer/workflows/unit_testing_cycle.py | 24 | # for best practices | COMMENT |
| MEDIUM | composer/workflows/hadoop_tutorial.py | 39 | # for best practices | COMMENT |
| MEDIUM | composer/workflows/unit_testing_variables.py | 25 | # for best practices | COMMENT |
| MEDIUM | composer/workflows/quickstart.py | 23 | # for best practices | COMMENT |
| MEDIUM⚡ | composer/workflows/bq_copy_across_locations.py | 54 | # for best practices | COMMENT |
| MEDIUM | composer/workflows/kubernetes_pod_operator_c2.py | 56 | # for best practices | COMMENT |
| MEDIUM | composer/cicd_sample/dags/example2_dag.py | 22 | # for best practices | COMMENT |
| MEDIUM | composer/cicd_sample/dags/example_dag.py | 21 | # for best practices | COMMENT |
| MEDIUM | composer/rest/composer2/composer2_airflow_rest_api.py | 31 | # Following GCP best practices, these credentials should be | COMMENT |
| LOW | appengine/standard/search/snippets/snippets.py | 208 | # sample we'll just use the first document. | COMMENT |
| MEDIUM | bigquery/bqml/data_scientist_tutorial_test.py | 27 | # other invocations of this tutorial. In practice, you could leverage | COMMENT |
| MEDIUM | bigquery/bqml/ncaa_tutorial_test.py | 27 | # other invocations of this tutorial. In practice, you could leverage | COMMENT |
| LOW | …l_buckets/storage_finalize_appendable_object_upload.py | 52 | # 2. If you don't want to finalize, you can simply call `writer.close` | COMMENT |
| MEDIUM | iam/cloud-client/snippets/set_policy.py | 53 | # but it means that request may fail and you need to leverage exponential retries approach | COMMENT |
| MEDIUM | iam/cloud-client/snippets/service_account_set_policy.py | 48 | # may fail and you need to leverage exponential retries approach | COMMENT |
| MEDIUM | …tive_ai/model_tuning/create_evaluation_task_example.py | 39 | """As part of a comprehensive initiative to tackle urban congestion and foster | STRING |
| MEDIUM | bigquery-datatransfer/snippets/scheduled_query.py | 34 | # To facilitate testing, we replace values with alternatives | COMMENT |
| MEDIUM | bigquery-datatransfer/snippets/scheduled_query.py | 35 | # provided by the testing harness. | COMMENT |
| MEDIUM | bigquery-datatransfer/snippets/copy_dataset.py | 27 | # To facilitate testing, we replace values with alternatives | COMMENT |
| MEDIUM | bigquery-datatransfer/snippets/copy_dataset.py | 28 | # provided by the testing harness. | COMMENT |
| MEDIUM⚡ | …query-datatransfer/snippets/manage_transfer_configs.py | 26 | # To facilitate testing, we replace values with alternatives | COMMENT |
| MEDIUM⚡ | …query-datatransfer/snippets/manage_transfer_configs.py | 27 | # provided by the testing harness. | COMMENT |
| MEDIUM⚡ | …query-datatransfer/snippets/manage_transfer_configs.py | 67 | # To facilitate testing, we replace values with alternatives | COMMENT |
| MEDIUM⚡ | …query-datatransfer/snippets/manage_transfer_configs.py | 68 | # provided by the testing harness. | COMMENT |
| MEDIUM | bigquery-datatransfer/snippets/quickstart.py | 29 | # To facilitate testing, we replace values with alternatives | COMMENT |
| MEDIUM | bigquery-datatransfer/snippets/quickstart.py | 30 | # provided by the testing harness. | COMMENT |
| MEDIUM⚡ | genai/tools/tools_urlcontext_with_txt.py | 48 | # * **Description**: This is Google's most advanced model, described as a "state-of-the-art thinking model". It ex | COMMENT |
| MEDIUM | …i/code_execution/codeexecution_barplot_with_txt_img.py | 144 | # Based on the data provided in the table, I have calculated the per-category performance of Gemini 3 Pro normal | COMMENT |
| MEDIUM⚡ | datacatalog/snippets/create_fileset.py | 29 | # To facilitate testing, we replace values with alternatives | COMMENT |
| MEDIUM⚡ | datacatalog/snippets/create_fileset.py | 30 | # provided by the testing harness. | COMMENT |
| MEDIUM | datacatalog/snippets/grant_tag_template_user_role.py | 34 | # To facilitate testing, we replace values with alternatives | COMMENT |
| MEDIUM | datacatalog/snippets/grant_tag_template_user_role.py | 35 | # provided by the testing harness. | COMMENT |
| MEDIUM | datacatalog/snippets/search_assets.py | 30 | # To facilitate testing, we replace values with alternatives | COMMENT |
| MEDIUM | datacatalog/snippets/search_assets.py | 31 | # provided by the testing harness. | COMMENT |
| MEDIUM | datacatalog/snippets/lookup_entry.py | 34 | # To facilitate testing, we replace values with alternatives | COMMENT |
| MEDIUM | datacatalog/snippets/lookup_entry.py | 35 | # provided by the testing harness. | COMMENT |
| MEDIUM⚡ | datacatalog/snippets/create_custom_entry.py | 33 | # To facilitate testing, we replace values with alternatives | COMMENT |
| MEDIUM⚡ | datacatalog/snippets/create_custom_entry.py | 34 | # provided by the testing harness. | COMMENT |
| MEDIUM⚡ | datacatalog/quickstart/quickstart.py | 34 | # To facilitate testing, we replace values with alternatives | COMMENT |
| MEDIUM⚡ | datacatalog/quickstart/quickstart.py | 35 | # provided by the testing harness. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …taflow/flex-templates/streaming_beam/streaming_beam.py | 91 | # Output the results into BigQuery table. | COMMENT |
| LOW | privateca/snippets/conftest.py | 53 | # Check if the CA is enabled. | COMMENT |
| LOW | privateca/snippets/delete_certificate_authority.py | 40 | # Check if the CA is enabled. | COMMENT |
| LOW | privateca/snippets/delete_certificate_authority.py | 69 | # Check if the CA has been deleted. | COMMENT |
| LOW | privateca/snippets/enable_certificate_authority.py | 52 | # Check if the CA is enabled. | COMMENT |
| LOW | privateca/snippets/disable_certificate_authority.py | 49 | # Check if the CA is disabled. | COMMENT |
| LOW | …ct-center-insights/snippets/test_create_issue_model.py | 37 | # Check if the project has the minimum number of conversations required to create an issue model. | COMMENT |
| LOW | kms/attestations/verify_attestation.py | 60 | # Check if the data was signed by the private key associated | COMMENT |
| LOW | documentai/snippets/process_document_sample.py | 57 | # Read the file into memory | COMMENT |
| LOW | documentai/snippets/handle_response_sample_v1beta3.py | 139 | # Read the file into memory | COMMENT |
| LOW | documentai/snippets/quickstart_sample.py | 60 | # Read the file into memory. | COMMENT |
| LOW | documentai/snippets/handle_response_sample.py | 529 | # Read the file into memory | COMMENT |
| LOW | documentai/snippets/review_document_sample.py | 79 | # Read the file into memory | COMMENT |
| LOW | …/snippets/set_default_processor_version_sample_test.py | 40 | # Set back to previous default | COMMENT |
| LOW | auth/cloud-client-temp/custom_okta_supplier.py | 66 | # Check if the current token is still valid (with a 60-second buffer). | COMMENT |
| LOW | appengine/standard/blobstore/gcs/main.py | 46 | # Read the file's contents using the Blobstore API. | COMMENT |
| LOW | …d/migration/taskqueue/pull-counter/appengine_config.py | 19 | # Set path to your libraries folder. | COMMENT |
| LOW | …standard/migration/ndb/redis_cache/appengine_config.py | 18 | # Set path to your libraries folder. | COMMENT |
| LOW | …ne/standard/migration/ndb/overview/appengine_config.py | 18 | # Set path to your libraries folder. | COMMENT |
| LOW | …ine/standard/migration/memorystore/appengine_config.py | 18 | # Set path to your libraries folder. | COMMENT |
| LOW | appengine/standard_python3/pubsub/appengine_config.py | 19 | # Set path to your libraries folder. | COMMENT |
| LOW | language/snippets/sentiment/sentiment_analysis.py | 55 | # Print the results | COMMENT |
| LOW | retail/interactive-tutorials/user_environment_setup.sh | 44 | # Check if user has service account active | COMMENT |
| LOW | retail/interactive-tutorials/user_environment_setup.sh | 71 | # Check if any of the needed roles is missing | COMMENT |
| LOW | …torials/events/setup_events/update_user_events_json.py | 42 | # Write the file out again | COMMENT |
| LOW | bigquery/continuous-queries/programmatic_retries.py | 61 | # Check if required fields are missing | COMMENT |
| LOW | automl/snippets/vision_classification_predict.py | 31 | # Read the file. | COMMENT |
| LOW | automl/snippets/vision_object_detection_predict.py | 31 | # Read the file. | COMMENT |
| LOW | automl/snippets/translate_predict.py | 31 | # Read the file content for translation. | COMMENT |
| LOW | alm/ui-examples/app.py | 118 | # Open the file and send as multipart/form-data | COMMENT |
| LOW | speech/snippets/transcribe_diarization_gcs_beta.py | 62 | # Print the output | COMMENT |
| LOW | storage/samples/snippets/hmac_samples_test.py | 58 | # Check if the failure is due to the Organization Policy constraint | COMMENT |
| LOW | iam/cloud-client/snippets/test_project_policies.py | 49 | # Check if the account was created correctly using exponential backoff. | COMMENT |
| LOW | iam/cloud-client/snippets/test_deny_policies.py | 39 | # Check if the created policy is listed. | COMMENT |
| LOW | iam/cloud-client/snippets/test_deny_policies.py | 49 | # Check if the policy rule is updated. | COMMENT |
| LOW | iam/cloud-client/snippets/test_service_account_key.py | 66 | # Check if the account was created correctly using exponential backoff. | COMMENT |
| LOW | iam/cloud-client/snippets/quickstart_test.py | 43 | # Check if the account was created correctly using exponential backoff. | COMMENT |
| LOW | iam/cloud-client/snippets/test_service_account.py | 45 | # Check if the account was created correctly using exponential backoff. | COMMENT |
| LOW | compute/metadata/vm_identity_test.py | 38 | # Check if we're running in a GCP VM: | COMMENT |
| LOW | …client_library/snippets/disks/replication_disk_stop.py | 92 | # Check if the primary disk is in a region or a zone | COMMENT |
| LOW | …lient_library/snippets/disks/replication_disk_start.py | 97 | # Check if the primary disk location is a region or a zone. | COMMENT |
| LOW | …ances/create_start_instance/create_windows_instance.py | 331 | external_access=True, # Set this to False to disable external IP for your instance | CODE |
| LOW | …s/instances/custom_machine_types/create_with_helper.py | 136 | # Check if the requested memory isn't too little | COMMENT |
| LOW | …s/instances/custom_machine_types/create_with_helper.py | 142 | # Check if the requested memory isn't too much | COMMENT |
| LOW | …nippets/instances/custom_machine_types/helper_class.py | 127 | # Check if the requested memory isn't too little | COMMENT |
| LOW | …nippets/instances/custom_machine_types/helper_class.py | 133 | # Check if the requested memory isn't too much | COMMENT |
| LOW | …nces/custom_machine_types/create_shared_with_helper.py | 136 | # Check if the requested memory isn't too little | COMMENT |
| LOW | …nces/custom_machine_types/create_shared_with_helper.py | 142 | # Check if the requested memory isn't too much | COMMENT |
| LOW | …ent_library/ingredients/disks/replication_disk_stop.py | 36 | # Check if the primary disk is in a region or a zone | COMMENT |
| LOW | …nt_library/ingredients/disks/replication_disk_start.py | 41 | # Check if the primary disk location is a region or a zone. | COMMENT |
| LOW | …ances/create_start_instance/create_windows_instance.py | 84 | external_access=True, # Set this to False to disable external IP for your instance | CODE |
| LOW | …edients/instances/custom_machine_types/helper_class.py | 123 | # Check if the requested memory isn't too little | COMMENT |
| LOW | …edients/instances/custom_machine_types/helper_class.py | 129 | # Check if the requested memory isn't too much | COMMENT |
| LOW⚡ | recaptcha_enterprise/snippets/create_mfa_assessment.py | 108 | # Check if the token is valid. | COMMENT |
| LOW⚡ | recaptcha_enterprise/snippets/create_mfa_assessment.py | 117 | # Check if the expected action was executed. | COMMENT |
| LOW | recaptcha_enterprise/snippets/create_assessment.py | 65 | # Check if the token is valid. | COMMENT |
| LOW | recaptcha_enterprise/snippets/create_assessment.py | 74 | # Check if the expected action was executed. | COMMENT |
| LOW | recaptcha_enterprise/demosite/app/urls.py | 78 | # Check if the token is valid, score is above threshold score and the action equals expected. | COMMENT |
| LOW | recaptcha_enterprise/demosite/app/urls.py | 127 | # Check if the token is valid, score is above threshold score and the action equals expected. | COMMENT |
| LOW | recaptcha_enterprise/demosite/app/urls.py | 131 | # Check if the login credentials exist and match. | COMMENT |
| 33 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | privateca/snippets/create_certificate.py | 52 | # Also you can use Cloud KMS to retrieve an already created public key. | COMMENT |
| MEDIUM | privateca/snippets/create_certificate_csr.py | 47 | # Also you can use Cloud KMS to retrieve an already created public key. | COMMENT |
| LOW | kubernetes_engine/django_tutorial/mysite/settings.py | 29 | # SECURITY WARNING: If you deploy a Django app to production, make sure to set | COMMENT |
| MEDIUM⚡ | securitycenter/snippets/snippets_findings.py | 208 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets/snippets_findings.py | 51 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets/snippets_findings.py | 75 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets/snippets_findings.py | 102 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets/snippets_findings.py | 168 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets/snippets_findings.py | 266 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets/snippets_findings.py | 300 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets/snippets_findings.py | 328 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets/snippets_findings.py | 396 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets/snippets_findings.py | 432 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets/snippets_findings.py | 476 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets/snippets_findings.py | 523 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets/snippets_security_marks.py | 188 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets_v2/snippets_findings_v2.py | 253 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets_v2/snippets_findings_v2.py | 313 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets_v2/snippets_findings_v2.py | 383 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | securitycenter/snippets_v2/snippets_findings_v2.py | 415 | # created previously (you can use list_sources to find a specific one). | COMMENT |
| MEDIUM | …d-media-livestream/keypublisher/clients/fake_client.py | 15 | """File containing a fake CPIX client for demonstration purposes.""" | STRING |
| MEDIUM | …d-media-livestream/keypublisher/clients/fake_client.py | 25 | """Fake CPIX client, for demonstration purposes only.""" | STRING |
| MEDIUM | …airflow_1_samples/dataflowtemplateoperator_tutorial.py | 70 | # Below is a list of all the templates you can use. | COMMENT |
| MEDIUM | composer/workflows/dataflowtemplateoperator_tutorial.py | 71 | # Below is a list of all the templates you can use. | COMMENT |
| LOW | appengine/flexible/django_cloudsql/mysite/settings.py | 65 | # app not on App Engine, make sure to set an appropriate host here. | COMMENT |
| MEDIUM | …engine/standard/ndb/async/app_toplevel/app_toplevel.py | 37 | # for demonstration purposes, you can also make the entire app toplevel with | COMMENT |
| MEDIUM | appengine/standard_python3/django/main.py | 22 | # Alternatively, you can add a custom entrypoint field in your app.yaml: | COMMENT |
| MEDIUM | bigquery/bigframes/call_python_udf.py | 73 | # has been deployed to bigquery-utils for demonstration purposes. To use in | COMMENT |
| MEDIUM | …ge/samples/snippets/storage_generate_encryption_key.py | 26 | This is included for demonstration purposes. You should generate your own | STRING |
| MEDIUM | cloud-sql/postgres/sqlalchemy/deployment.yaml | 77 | # If connecting from a VPC-native GKE cluster, you can use the | COMMENT |
| MEDIUM | cloud-sql/sql-server/sqlalchemy/deployment.yaml | 49 | # If connecting from a VPC-native GKE cluster, you can use the | COMMENT |
| MEDIUM | cloud-sql/sql-server/sqlalchemy/deployment.yaml | 76 | # If connecting from a VPC-native GKE cluster, you can use the | COMMENT |
| MEDIUM | cloud-sql/mysql/sqlalchemy/deployment.yaml | 77 | # If connecting from a VPC-native GKE cluster, you can use the | COMMENT |
| MEDIUM | genai/thinking/thinking_budget_with_txt.py | 35 | # To solve the equation $x^2 + 4x + 4 = 0$, you can use several methods: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | owlbot.py | 29 | CODE | |
| LOW | video/live-stream/channel_test.py | 45 | CODE | |
| LOW | dialogflow/streaming_transcription.py | 164 | CODE | |
| LOW | dialogflow/streaming_transcription.py | 111 | CODE | |
| LOW | dialogflow-cx/streaming_detect_intent_infinite.py | 433 | CODE | |
| LOW | dialogflow-cx/streaming_detect_intent_infinite.py | 200 | CODE | |
| LOW | dialogflow-cx/streaming_detect_intent_infinite.py | 359 | CODE | |
| LOW | dialogflow-cx/webhook_prebuilt_telecom.py | 24 | CODE | |
| LOW | firestore/cloud-client/snippets_test.py | 56 | CODE | |
| LOW | firestore/cloud-client/snippets.py | 744 | CODE | |
| LOW | firestore/cloud-client/snippets.py | 752 | CODE | |
| LOW | service_extensions/callouts/add_header/test_server.py | 70 | CODE | |
| LOW | healthcare/api-client/v1/consent/consent_stores.py | 417 | CODE | |
| LOW | …lthcare/api-client/v1/consent/attribute_definitions.py | 430 | CODE | |
| LOW | healthcare/api-client/v1/hl7v2/hl7v2_stores.py | 389 | CODE | |
| LOW | healthcare/api-client/v1/hl7v2/hl7v2_messages.py | 380 | CODE | |
| LOW | healthcare/api-client/v1/dicom/dicomweb.py | 499 | CODE | |
| LOW | healthcare/api-client/v1/dicom/dicom_stores.py | 507 | CODE | |
| LOW | healthcare/api-client/v1/fhir/fhir_stores.py | 538 | CODE | |
| LOW | healthcare/api-client/v1/fhir/fhir_resources.py | 1674 | CODE | |
| LOW | healthcare/api-client/v1beta1/fhir/fhir_stores.py | 171 | CODE | |
| LOW | healthcare/api-client/v1beta1/fhir/fhir_resources.py | 434 | CODE | |
| LOW | composer/airflow_1_samples/airflow_db_cleanup.py | 335 | CODE | |
| LOW | composer/workflows/airflow_db_cleanup.py | 414 | CODE | |
| LOW | appengine/standard/ndb/transactions/main.py | 152 | CODE | |
| LOW | appengine/standard/i18n/i18n_utils.py | 40 | CODE | |
| LOW | appengine/standard/i18n/i18n_utils.py | 72 | CODE | |
| LOW | vision/snippets/detect/beta_snippets.py | 94 | CODE | |
| LOW | vision/snippets/detect/beta_snippets.py | 150 | CODE | |
| LOW | vision/snippets/detect/beta_snippets.py | 204 | CODE | |
| LOW | vision/snippets/detect/beta_snippets.py | 261 | CODE | |
| LOW | vision/snippets/detect/vision_batch_annotate_files.py | 21 | CODE | |
| LOW | …ion/snippets/detect/vision_batch_annotate_files_gcs.py | 20 | CODE | |
| LOW | vision/snippets/detect/detect.py | 544 | CODE | |
| LOW | vision/snippets/detect/detect.py | 620 | CODE | |
| LOW | vision/snippets/detect/detect.py | 826 | CODE | |
| LOW | vision/snippets/detect/detect.py | 874 | CODE | |
| LOW | vision/snippets/detect/detect.py | 1050 | CODE | |
| LOW | vision/snippets/detect/detect.py | 1077 | CODE | |
| LOW | vision/snippets/document_text/doctext.py | 73 | CODE | |
| LOW | alm/ui-examples/app.py | 176 | CODE | |
| LOW | people-and-planet-ai/conftest.py | 196 | CODE | |
| LOW | people-and-planet-ai/conftest.py | 210 | CODE | |
| LOW | speech/microphone/transcribe_streaming_infinite_v2.py | 160 | CODE | |
| LOW | speech/microphone/transcribe_streaming_mic.py | 109 | CODE | |
| LOW | speech/microphone/transcribe_streaming_infinite.py | 156 | CODE | |
| LOW | …ointelligence/samples/analyze/video_detect_logo_gcs.py | 20 | CODE | |
| LOW | videointelligence/samples/analyze/video_detect_logo.py | 23 | CODE | |
| LOW | compute/oslogin/oslogin_service_account_ssh.py | 124 | CODE | |
| LOW | compute/client_library/sgs.py | 98 | CODE | |
| LOW | compute/client_library/sgs.py | 120 | CODE | |
| LOW | compute/client_library/sgs.py | 150 | CODE | |
| LOW | compute/client_library/sgs.py | 178 | CODE | |
| LOW | compute/client_library/test_sgs.py | 37 | CODE | |
| LOW | …s/instances/custom_machine_types/create_with_helper.py | 180 | CODE | |
| LOW | …nippets/instances/custom_machine_types/helper_class.py | 171 | CODE | |
| LOW | …nces/custom_machine_types/create_shared_with_helper.py | 180 | CODE | |
| LOW | …ibrary/snippets/instances/ip_address/get_vm_address.py | 54 | CODE | |
| LOW | compute/client_library/snippets/routes/create.py | 80 | CODE | |
| LOW | …ute/client_library/snippets/routes/create_kms_route.py | 92 | CODE | |
| 33 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | asset/snippets/quickstart_update_saved_query.py | 34 | # In this example, we only update description of the saved_query. | COMMENT |
| HIGH | asset/snippets/quickstart_updatefeed.py | 34 | # In this example, we update topic of the feed | COMMENT |
| HIGH | composer/airflow_1_samples/simple.py | 70 | # operators. In this example, hello_python executes before goodbye_bash. | COMMENT |
| HIGH | composer/workflows/simple.py | 66 | # operators. In this example, hello_python executes before goodbye_bash. | COMMENT |
| HIGH | …e/client_library/snippets/snapshots/schedule_create.py | 110 | # In this example we use daily_schedule - every day, starts between 12:00 AM and 1:00 AM | COMMENT |
| HIGH | …lient_library/ingredients/snapshots/schedule_create.py | 54 | # In this example we use daily_schedule - every day, starts between 12:00 AM and 1:00 AM | COMMENT |
| HIGH | dlp/snippets/Inspect/inspect_gcs_test.py | 71 | # In this example, we'll call the callback function with a mock message | COMMENT |
| HIGH | …nippets/Inspect/inspect_bigquery_with_sampling_test.py | 70 | # In this example, we'll call the callback function with a mock message | COMMENT |
| HIGH | dlp/snippets/Inspect/inspect_gcs_with_sampling_test.py | 70 | # In this example, we'll call the callback function with a mock message | COMMENT |
| HIGH | dlp/snippets/Inspect/inspect_bigquery_test.py | 70 | # In this example, we'll call the callback function with a mock message | COMMENT |
| HIGH | dlp/snippets/Inspect/inspect_datastore_test.py | 72 | # In this example, we'll call the callback function with a mock message | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dataflow/run_template/main.py | 62 | CODE | |
| LOW | cloud_scheduler/snippets/create_job.py | 57 | CODE | |
| LOW | dialogflow/webhook.py | 39 | CODE | |
| LOW | dialogflow/update_intent.py | 30 | CODE | |
| LOW | dialogflow-cx/long_running_operation_test.py | 43 | CODE | |
| LOW | dialogflow-cx/update_intent_test.py | 46 | CODE | |
| LOW | dialogflow-cx/page_management.py | 45 | CODE | |
| LOW | dialogflow-cx/page_management.py | 63 | CODE | |
| LOW | dialogflow-cx/page_management.py | 77 | CODE | |
| LOW | dialogflow-cx/webhook.py | 41 | CODE | |
| LOW | dialogflow-cx/webhook_log_session_info.py | 46 | CODE | |
| LOW | dialogflow-cx/update_intent.py | 30 | CODE | |
| LOW | dialogflow-cx/create_agent.py | 36 | CODE | |
| LOW | …ice_extensions/callouts/add_header/service_pb2_grpc.py | 138 | CODE | |
| LOW | appengine/flexible/tasks/snippets.py | 176 | CODE | |
| LOW | appengine/flexible/tasks/snippets.py | 191 | CODE | |
| LOW | appengine/flexible/tasks/snippets.py | 206 | CODE | |
| LOW | appengine/flexible/tasks/snippets.py | 221 | CODE | |
| LOW | …ndard_python3/bundled-services/blobstore/flask/main.py | 82 | CODE | |
| LOW | language/snippets/api/analyze.py | 45 | CODE | |
| LOW | language/snippets/api/analyze.py | 59 | CODE | |
| LOW | language/snippets/api/analyze.py | 73 | CODE | |
| LOW | compute/client_library/snippets/instances/create.py | 137 | CODE | |
| LOW | …lient_library/snippets/instances/create_with_subnet.py | 137 | CODE | |
| LOW | …nces/create_start_instance/create_from_public_image.py | 137 | CODE | |
| LOW | …nces/create_start_instance/create_from_custom_image.py | 137 | CODE | |
| LOW | …es/create_start_instance/create_with_existing_disks.py | 95 | CODE | |
| LOW | …stances/create_start_instance/create_with_local_ssd.py | 157 | CODE | |
| LOW | …s/create_start_instance/create_with_additional_disk.py | 167 | CODE | |
| LOW | …te_start_instance/create_with_snapshotted_data_disk.py | 174 | CODE | |
| LOW | …ances/create_start_instance/create_windows_instance.py | 138 | CODE | |
| LOW | …nstances/create_start_instance/create_from_snapshot.py | 119 | CODE | |
| LOW | …ces/create_start_instance/create_with_regional_disk.py | 82 | CODE | |
| LOW | …s/instances/custom_machine_types/create_with_helper.py | 331 | CODE | |
| LOW | …nstances/custom_machine_types/create_without_helper.py | 137 | CODE | |
| LOW | …/instances/custom_machine_types/extra_mem_no_helper.py | 137 | CODE | |
| LOW | …nces/custom_machine_types/create_shared_with_helper.py | 331 | CODE | |
| LOW | …y/snippets/instances/preemptible/create_preemptible.py | 137 | CODE | |
| LOW | …nces/ip_address/assign_static_external_ip_to_new_vm.py | 137 | CODE | |
| LOW | …t_library/snippets/instances/custom_hostname/create.py | 137 | CODE | |
| LOW | …library/snippets/instances/delete_protection/create.py | 137 | CODE | |
| LOW | …mpute/client_library/snippets/instances/spot/create.py | 137 | CODE | |
| LOW | …lient_library/ingredients/instances/create_instance.py | 29 | CODE | |
| LOW | …se/demosite/app/backend/create_recaptcha_assessment.py | 53 | CODE | |
| LOW | contentwarehouse/snippets/update_document_sample.py | 56 | CODE | |
| LOW | …entwarehouse/snippets/delete_document_schema_sample.py | 58 | CODE | |
| LOW | contentwarehouse/snippets/get_document_sample.py | 48 | CODE | |
| LOW | contentwarehouse/snippets/delete_document_sample.py | 49 | CODE | |
| LOW | contentwarehouse/snippets/create_document_sample.py | 82 | CODE | |
| LOW | dlp/snippets/Deidentify/deidentify_date_shift.py | 32 | CODE | |
| LOW | containeranalysis/snippets/get_note.py | 30 | CODE | |
| LOW | containeranalysis/snippets/create_note.py | 44 | CODE | |
| LOW | media_cdn/dualtoken.py | 40 | CODE | |
| LOW | vmwareengine/cloud-client/create_legacy_network.py | 48 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ace/cloud-trace-demo-app-opentelemetry/app/app_test.py | 24 | expected = "Lorem ipsum dolor sit amet" | CODE |
| LOW | …ace/cloud-trace-demo-app-opentelemetry/app/app_test.py | 24 | expected = "Lorem ipsum dolor sit amet" | CODE |
| LOW | endpoints/bookstore-grpc/jwt_token_gen.py | 52 | "email": "user@example.com", | CODE |
| LOW⚡ | …d-media-livestream/keypublisher/clients/fake_client.py | 42 | fake_key = secrets.token_hex(16) | CODE |
| LOW⚡ | …d-media-livestream/keypublisher/clients/fake_client.py | 46 | "key": fake_key, | CODE |
| LOW⚡ | …d-media-livestream/keypublisher/clients/fake_client.py | 48 | f"https://storage.googleapis.com/bucket-name/{fake_key}.bin" | CODE |
| LOW | composer/workflows/email_operator_sendgrid.py | 40 | to="user@example.com", | CODE |
| LOW | appengine/standard/appengine_helper.py | 140 | def _login(email="user@example.com", id="123", is_admin=False): | CODE |
| LOW | appengine/standard/endpoints/backend/main_test.py | 52 | user_mock.return_value.email.return_value = "user@example.com" | CODE |
| LOW⚡ | appengine/standard/ndb/entities/snippets_test.py | 215 | user = users.User(email="user@example.com", _user_id="123") | CODE |
| LOW | appengine/standard/iap/main_test.py | 29 | assert "user@example.com" in response.body | CODE |
| LOW | …ine/standard/endpoints-frameworks-v2/echo/main_test.py | 39 | user_mock.return_value.email.return_value = "user@example.com" | CODE |
| LOW | …ine/standard/endpoints-frameworks-v2/echo/main_test.py | 41 | assert "user@example.com" == response.message | CODE |
| LOW | …andard/endpoints-frameworks-v2/quickstart/main_test.py | 52 | user_mock.return_value.email.return_value = "user@example.com" | CODE |
| LOW | appengine/standard/users/main_test.py | 29 | assert "user@example.com" in response.body | CODE |
| LOW | appengine/standard_python3/pubsub/main_test.py | 53 | def fake_token(signer): | CODE |
| LOW | appengine/standard_python3/pubsub/main_test.py | 86 | def test_push_endpoint(monkeypatch, client, fake_token): | CODE |
| LOW | appengine/standard_python3/pubsub/main_test.py | 99 | headers=dict(Authorization="Bearer " + fake_token.decode("utf-8")), | CODE |
| LOW | …aptcha_enterprise/demosite/app/static/demo-2af4c10e.js | 3993 | <input type="email" value="user@example.com" disabled /> | CODE |
| LOW | …aptcha_enterprise/demosite/app/static/demo-2af4c10e.js | 4018 | <input type="email" value="user@example.com" disabled /> | CODE |
| LOW | eventarc/audit_iam/main_test.py | 46 | "authenticationInfo": {"principalEmail": "user@example.com"}, | CODE |
| LOW | …om_Infotype/inspect_string_custom_omit_overlap_test.py | 31 | assert "John Doe" in out | CODE |
| LOW | …nspect/inspect_send_data_to_hybrid_job_trigger_test.py | 41 | content_string = "My email is test@example.org" | CODE |
| LOW | …ets/Inspect/inspect_column_values_w_custom_hotwords.py | 134 | '"[["example1@example.org", "test1@example.com],' | CODE |
| LOW | …ets/Inspect/inspect_column_values_w_custom_hotwords.py | 135 | '["example2@example.org", "test2@example.com]]"', | CODE |
| LOW⚡ | …/snippets/Deidentify/deidentify_exception_list_test.py | 24 | content_str = "jack@example.org accessed record of user: gary@example.org" | CODE |
| LOW⚡ | …/snippets/Deidentify/deidentify_exception_list_test.py | 25 | exception_list = ["jack@example.org", "jill@example.org"] | CODE |
| LOW⚡ | …/snippets/Deidentify/deidentify_exception_list_test.py | 32 | assert "gary@example.org" not in out | CODE |
| LOW⚡ | …s/Deidentify/deidentify_table_with_crypto_hash_test.py | 28 | "abby_abernathy@example.org", | CODE |
| LOW⚡ | …s/Deidentify/deidentify_table_with_crypto_hash_test.py | 32 | "bert_beauregard@example.org", | CODE |
| LOW⚡ | …s/Deidentify/deidentify_table_with_crypto_hash_test.py | 36 | "cathy_crenshaw@example.org", | CODE |
| LOW | …s/Deidentify/deidentify_table_with_crypto_hash_test.py | 51 | assert "abby_abernathy@example.org" not in out | CODE |
| LOW | …ify/deidentify_table_with_multiple_crypto_hash_test.py | 31 | "user1@example.org", | CODE |
| LOW | …ify/deidentify_table_with_multiple_crypto_hash_test.py | 53 | assert "user1@example.org" not in out | CODE |
| LOW | dlp/snippets/Deidentify/deidentify_table_infotypes.py | 54 | ["John Doe", "johndoe@example.com", "4253458383"] | STRING |
| LOW | …aanalytics/dataengineeringagent/dea_a2a_client_test.py | 124 | token = "fake-token" | CODE |
| LOW | …aanalytics/dataengineeringagent/dea_a2a_client_test.py | 181 | token = "fake-token" | CODE |
| LOW | …aanalytics/dataengineeringagent/dea_a2a_client_test.py | 247 | token = "fake-token" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | storagetransfer/event_driven_gcs_transfer.py | 43 | # description = 'Creates an event-driven transfer that tracks a pubsub subscription' | COMMENT |
| MEDIUM | storagetransfer/event_driven_aws_transfer.py | 45 | # description = 'Creates an event-driven transfer that tracks an SQS queue' | COMMENT |
| MEDIUM | generative_ai/rag/create_corpus_pinecone_example.py | 44 | # Configure embedding model (Optional) | COMMENT |
| MEDIUM | …nerative_ai/rag/create_corpus_feature_store_example.py | 42 | # Configure embedding model (Optional) | COMMENT |
| MEDIUM | generative_ai/rag/quickstart_example.py | 38 | # Create a RAG Corpus, Import Files, and Generate a response | COMMENT |
| MEDIUM | generative_ai/rag/quickstart_example.py | 50 | # Configure embedding model, for example "text-embedding-005". | COMMENT |
| MEDIUM | generative_ai/rag/quickstart_example.py | 105 | # Create a RAG retrieval tool | COMMENT |
| MEDIUM | generative_ai/rag/quickstart_example.py | 136 | # RAG stands for Retrieval-Augmented Generation. | COMMENT |
| MEDIUM | generative_ai/rag/create_corpus_weaviate_example.py | 46 | # Configure embedding model (Optional) | COMMENT |
| MEDIUM | …nerative_ai/rag/create_corpus_vector_search_example.py | 43 | # Configure embedding model (Optional) | COMMENT |
| MEDIUM⚡ | genai/tools/tools_urlcontext_with_txt.py | 48 | # * **Description**: This is Google's most advanced model, described as a "state-of-the-art thinking model". It ex | COMMENT |
| MEDIUM⚡ | genai/tools/tools_urlcontext_with_txt.py | 56 | # * **Description**: Positioned as "fast and intelligent," Gemini 2.5 Flash is highlighted as Google's best model | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | discoveryengine/search_lite_sample.py | 25 | # api_key = "YOUR_API_KEY" | COMMENT |
| HIGH | endpoints/getting-started/README.md | 60 | $ python clients/echo-client.py https://YOUR-PROJECT-ID.appspot.com YOUR-API-KEY helloworld | CODE |
| HIGH | endpoints/getting-started/README.md | 80 | $ python clients/google-jwt-client.py https://YOUR-PROJECT-ID.appspot.com YOUR-API-KEY /path/to/service-account.json | CODE |
| HIGH | endpoints/getting-started/README.md | 99 | $ python clients/google-id-token-client.py https://YOUR-PROJECT-ID.appspot.com YOUR-API-KEY /path/to/client-id.json | CODE |
| HIGH | cloud-media-livestream/keypublisher/README.md | 212 | 'https://livestream-key-publisher-api-gateway-48mwfke9.uc.gateway.dev/keys?api_key=YOUR_API_KEY' \ | CODE |
| HIGH | genai/express_mode/api_key_example.py | 21 | API_KEY = "YOUR_API_KEY" | CODE |
| HIGH | genai/express_mode/test_express_mode_examples.py | 41 | mock_genai_client.assert_called_once_with(vertexai=True, api_key="YOUR_API_KEY") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contact-center-insights/snippets/set_project_ttl.py | 22 | def set_project_ttl(project_id: str) -> None: | CODE |
| LOW | securitycenter/snippets/snippets_mute_config.py | 141 | def update_mute_rule(mute_config_name: str) -> None: | CODE |
| LOW | securitycenter/snippets/snippets_mute_config.py | 180 | def set_mute_finding(finding_path: str) -> None: | CODE |
| LOW | securitycenter/snippets/snippets_mute_config.py | 209 | def set_unmute_finding(finding_path: str) -> None: | CODE |
| LOW | securitycenter/snippets/snippets_mute_config.py | 238 | def set_undefined_finding(finding_path: str) -> None: | CODE |
| LOW | securitycenter/snippets_v2/mute_findings_v2.py | 19 | def set_mute_finding(finding_path: str) -> None: | CODE |
| LOW | securitycenter/snippets_v2/mute_findings_v2.py | 49 | def set_unmute_finding(finding_path: str) -> None: | CODE |
| LOW | dialogflow-cx/streaming_detect_intent_infinite.py | 85 | logger = logging.getLogger(__name__) | CODE |
| LOW | composer/tools/composer_dags.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | composer/tools/composer_migrate.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | memorystore/memcache/quickstart.py | 76 | def update_instance(instance: memcache_v1.Instance, display_name: str) -> None: | CODE |
| LOW | secretmanager/snippets/regional_samples/__init__.py | 5 | __all__ = [ | CODE |
| LOW | language/snippets/cloud-client/v1/set_endpoint.py | 16 | def set_endpoint() -> None: | CODE |
| LOW | iam/cloud-client/snippets/update_deny_policy.py | 22 | def update_deny_policy(project_id: str, policy_id: str, etag: str) -> None: | CODE |
| LOW | recaptcha_enterprise/snippets/test_create_assessment.py | 180 | def set_score(browser: WebDriver, score: str) -> None: | CODE |
| LOW | recaptcha_enterprise/snippets/update_site_key.py | 23 | def update_site_key(project_id: str, recaptcha_site_key: str, domain_name: str) -> None: | CODE |
| LOW | …ing_engine/create_reasoning_engine_advanced_example.py | 46 | def set_up(self) -> None: | CODE |
| LOW | …/client-side-encryption/snippets/cloud_kms_env_aead.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | …nt-side-encryption/snippets/encrypt_and_insert_data.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/client-side-encryption/snippets/cloud_kms_env_aead.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | …nt-side-encryption/snippets/encrypt_and_insert_data.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/client-side-encryption/snippets/cloud_kms_env_aead.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | …nt-side-encryption/snippets/encrypt_and_insert_data.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | run/mcp-server/server.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | run/mcp-server/otel_setup.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | parametermanager/snippets/regional_samples/__init__.py | 5 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | compute/client_library/snippets/images/create.py | 104 | storage_location: storage location for the image. If the value is undefined, | STRING |
| HIGH | compute/client_library/ingredients/images/create.py | 50 | storage_location: storage location for the image. If the value is undefined, | STRING |
| HIGH⚡ | …/controlled_generation/ctrlgen_with_nullable_schema.py | 66 | # {"Day": "Tuesday", "Forecast": "rain showers", "Temperature": 64, "Wind Speed": null, "Humidity": "70%"}, | STRING |
| HIGH⚡ | …/controlled_generation/ctrlgen_with_nullable_schema.py | 67 | # {"Day": "Wednesday", "Forecast": "thunderstorms", "Temperature": 68, "Wind Speed": null}, | STRING |
| HIGH⚡ | …/controlled_generation/ctrlgen_with_nullable_schema.py | 68 | # {"Day": "Thursday", "Forecast": "cloudy", "Temperature": 66, "Wind Speed": null, "Humidity": "60%"}, | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dataplex/quickstart/quickstart_test.py | 52 | # Step 6 - result from Search | COMMENT |
| LOW | …control/hierarchical-namespace/delete_empty_folders.py | 299 | # Step 1: Discover and Partition Folders. | COMMENT |
| LOW | …control/hierarchical-namespace/delete_empty_folders.py | 312 | # Step 2: Iterate and delete by depth (from max to min). | COMMENT |
| LOW | storage/cloudbuild/zb-system-tests-cloudbuild.yaml | 26 | # Step 0: Generate a persistent SSH key for this build run. | COMMENT |
| LOW | storage/cloudbuild/zb-system-tests-cloudbuild.yaml | 97 | # Step 2: Run the integration tests inside the newly created VM and cleanup. | COMMENT |
| LOW⚡ | …analysis/storage_soft_delete_relative_cost_analyzer.py | 79 | # Step 1: Get storage class ratios for each bucket. | COMMENT |
| LOW⚡ | …analysis/storage_soft_delete_relative_cost_analyzer.py | 84 | # Step 2: Fetch soft-deleted bytes and calculate costs using Monitoring API. | COMMENT |
| LOW | functions/billing_stop_on_notification/stop_billing.py | 16 | # WARNING: The following action, if not in simulation mode, will disable billing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …les/snippets/storage_transfer_manager_download_many.py | 15 | # Example usage: | COMMENT |
| LOW | run/idp-sql/retry.sh | 21 | # Usage: | COMMENT |
| LOW | run/jobs/retry.sh | 21 | # Usage: | COMMENT |
| LOW | run/django/retry.sh | 21 | # Usage: | COMMENT |
| LOW | dataproc/snippets/submit_job.py | 20 | # Usage: | COMMENT |
| LOW | …ets/submit_pyspark_job_to_driver_node_group_cluster.py | 21 | # Usage: | COMMENT |
| LOW | dataproc/snippets/update_cluster.py | 20 | # Usage: | COMMENT |
| LOW | …ppets/submit_spark_job_to_driver_node_group_cluster.py | 21 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …control/hierarchical-namespace/delete_empty_folders.py | 299 | # Step 1: Discover and Partition Folders. | COMMENT |
| LOW | …control/hierarchical-namespace/delete_empty_folders.py | 312 | # Step 2: Iterate and delete by depth (from max to min). | COMMENT |
| LOW | storage/cloudbuild/zb-system-tests-cloudbuild.yaml | 26 | # Step 0: Generate a persistent SSH key for this build run. | COMMENT |
| LOW | storage/cloudbuild/zb-system-tests-cloudbuild.yaml | 97 | # Step 2: Run the integration tests inside the newly created VM and cleanup. | COMMENT |
| LOW⚡ | …analysis/storage_soft_delete_relative_cost_analyzer.py | 79 | # Step 1: Get storage class ratios for each bucket. | COMMENT |
| LOW⚡ | …analysis/storage_soft_delete_relative_cost_analyzer.py | 84 | # Step 2: Fetch soft-deleted bytes and calculate costs using Monitoring API. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | people-and-planet-ai/geospatial-classification/task.py | 122 | normalizer = tf.keras.layers.experimental.preprocessing.Normalization() | CODE |