Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update variable usage script to handle CaC projects #2586

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

grace-rehn
Copy link
Contributor

Updates the variable usage script to check for variables in CaC projects.

[sc-93621]

Script output:

Looking for usages of variable named name in space: 'Default'
Checking project 'First Project'
Checking project 'Second Project'
Checking project 'Third Project'
Checking project 'Generic OIDC'
Checking project 'GCP OIDC'
Checking project 'CAC project'

Found 9 results:

Project           : First Project
VariableSet       : 
MatchType         : Step
Context           : Deploy a Release
Property          : Actions
AdditionalContext : 
Link              : http://localhost:8065/app#/Spaces-1/projects/Projects-296/deployments/process/steps?actionId=291aaf52-a4d7-45ce-b48a-a5921118e5f5

Project           : Generic OIDC
VariableSet       : 
MatchType         : Step
Context           : HashiCorp Vault - JWT Login
Property          : Actions
AdditionalContext : 
Link              : http://localhost:8065/app#/Spaces-1/projects/Projects-381/deployments/process/steps?actionId=e3578067-dab6-4401-bfcb-71308ca88f68

Project           : First Project
VariableSet       : 
MatchType         : Step
Context           : Run a Script
Property          : Actions
AdditionalContext : 
Link              : http://localhost:8065/app#/Spaces-1/projects/Projects-296/deployments/process/steps?actionId=4acc9abf-46e5-4697-8b02-9c4b6fa4a180

Project           : Second Project
VariableSet       : 
MatchType         : Step
Context           : Run a Script
Property          : Actions
AdditionalContext : 
Link              : http://localhost:8065/app#/Spaces-1/projects/Projects-297/deployments/process/steps?actionId=de9bc060-ae8f-4995-8a3e-80eb552d2656

Project           : Generic OIDC
VariableSet       : 
MatchType         : Step
Context           : Run a Script
Property          : Actions
AdditionalContext : 
Link              : http://localhost:8065/app#/Spaces-1/projects/Projects-381/deployments/process/steps?actionId=d49b5c6e-27cf-4e66-bf01-5f6b0c35e87d

Project           : GCP OIDC
VariableSet       : 
MatchType         : Step
Context           : Run a Script
Property          : Actions
AdditionalContext : 
Link              : http://localhost:8065/app#/Spaces-1/projects/Projects-401/deployments/process/steps?actionId=886a0872-ba86-40bd-b6ab-cf7ec3fc7a9f

Project           : CAC project <----- HERE IS A VARIABLE USED IN A CAC PROJECT
VariableSet       : 
MatchType         : Step
Context           : Run a Script
Property          : Actions
AdditionalContext : 
Link              : http://localhost:8065/app#/Spaces-1/projects/Projects-421/deployments/process/steps?actionId=run-a-script
GitRef            : refs/heads/branch-test-1

Project           : Third Project
VariableSet       : 
MatchType         : Step
Context           : Run an Azure Script
Property          : Actions
AdditionalContext : 
Link              : http://localhost:8065/app#/Spaces-1/projects/Projects-346/deployments/process/steps?actionId=69ccc9ca-1d49-4b63-8b62-a355cb2d611a

Project           : GCP OIDC
VariableSet       : 
MatchType         : Step
Context           : Run gcloud in a Script
Property          : Actions
AdditionalContext : 
Link              : http://localhost:8065/app#/Spaces-1/projects/Projects-401/deployments/process/steps?actionId=b5000b24-0fd3-4bc2-9820-0c9470511fa9

Copy link
Contributor

@benPearce1 benPearce1 left a comment

Choose a reason for hiding this comment

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

Nice, thanks

@grace-rehn grace-rehn merged commit ca2c52a into main Dec 10, 2024
4 checks passed
@grace-rehn grace-rehn deleted the grace/update-variable-usage-script branch December 10, 2024 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants