From 517fc9699ea610eb965e1156d718bdf466aeb759 Mon Sep 17 00:00:00 2001 From: bpmb82 Date: Sat, 7 Dec 2024 14:45:21 +0100 Subject: [PATCH] Added bitbucket_cloud_token to credential plugins Added bitbucket_cloud_token to pyproject.toml --- pyproject.toml | 1 + src/awx_plugins/credentials/plugins.py | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 4ed56447b2..932ea8108d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -91,6 +91,7 @@ openstack = "awx_plugins.credentials.plugins:openstack" vmware = "awx_plugins.credentials.plugins:vmware" satellite6 = "awx_plugins.credentials.plugins:satellite6" bitbucket_dc_token = "awx_plugins.credentials.plugins:bitbucket_dc_token" +bitbucket_cloud_token = "awx_plugins.credentials.plugins:bitbucket_cloud_token" gce = "awx_plugins.credentials.plugins:gce" azure_rm = "awx_plugins.credentials.plugins:azure_rm" github_token = "awx_plugins.credentials.plugins:github_token" diff --git a/src/awx_plugins/credentials/plugins.py b/src/awx_plugins/credentials/plugins.py index eec5e807ec..5d3fd7a187 100644 --- a/src/awx_plugins/credentials/plugins.py +++ b/src/awx_plugins/credentials/plugins.py @@ -574,6 +574,30 @@ }, ) +bitbucket_cloud_token = ManagedCredentialType( + namespace='bitbucket_cloud_token', + kind='token', + name=gettext_noop('Bitbucket Cloud HTTP Access Token'), + managed=True, + inputs={ + 'fields': [ + { + 'id': 'token', + 'label': gettext_noop('Token'), + 'type': 'string', + 'secret': True, + 'help_text': gettext_noop( + 'This token needs to come from your user settings in ' + 'Bitbucket Cloud', + ), + }, + ], + 'required': [ + 'token', + ], + }, +) + insights = ManagedCredentialType( namespace='insights', kind='insights',