Skip to content

Commit

Permalink
Added bitbucket_cloud_token to credential plugins
Browse files Browse the repository at this point in the history
Added bitbucket_cloud_token to pyproject.toml
  • Loading branch information
bpmb82 committed Dec 7, 2024
1 parent e7d5733 commit 44fb46e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
24 changes: 24 additions & 0 deletions src/awx_plugins/credentials/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 44fb46e

Please sign in to comment.