Skip to main content
All CollectionsTemplatesBasic
Gather CircleCI Environment Variables from Bitbucket Repos - Workflow Template
Gather CircleCI Environment Variables from Bitbucket Repos - Workflow Template

Query Bitbucket for workspace repositories and gather CircleCI Environment Variables that are configured in the project.

Updated over 6 months ago

This workflow template automates the process of querying Bitbucket for workspace repositories and collecting the configured CircleCI environment variables for each repository. The gathered data is organized into a JSON array making it versatile for further use, such as in output reports, email notifications, or integration with collaboration tools, enhancing the efficiency of remediation workflows for web security alerts.

Use Cases

Remediate Web Security Alerts

Workflow Breakdown

  1. Query Bitbucket for a list of workspace repositories

  2. Loop over each repository that is found and gather CircleCI Environment variables

  3. If variables are found collect them for use in the output.

  4. Create generic text output that can optionally be used with email or collaboration tools.

Vendors

Utils, CircleCI, Bitbucket

Workflow Output

If variables are found a JSON array of the CircleCI variables organized by Bitbucket Repo. If not variables are found an empty array will be provided.

Did this answer your question?