Skip to content

[BRE-1706] Add simulated branch support to _version.yml#633

Open
brandonbiete wants to merge 2 commits intomainfrom
bre-1706/update-version-workflow
Open

[BRE-1706] Add simulated branch support to _version.yml#633
brandonbiete wants to merge 2 commits intomainfrom
bre-1706/update-version-workflow

Conversation

@brandonbiete
Copy link
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/BRE-1706

📔 Objective

Add optional sim_branch input to enable testing with simulated branches. When provided, workflow checks out the specified branch and uses its HEAD SHA instead of github.sha for commit lookups.

  • checkout_ref: Use sim_branch if provided, otherwise current ref
  • working_sha: Use HEAD SHA from sim_branch if provided, otherwise github.sha
  • Update Get PR ID step to use working_sha

🚨 Breaking Changes

Add optional sim_branch input to enable testing with simulated branches.
When provided, workflow checks out the specified branch and uses its
HEAD SHA instead of github.sha for commit lookups.

- checkout_ref: Use sim_branch if provided, otherwise current ref
- working_sha: Use HEAD SHA from sim_branch if provided, otherwise github.sha
- Update Get PR ID step to use working_sha
@brandonbiete brandonbiete requested a review from a team as a code owner March 10, 2026 20:19
@brandonbiete brandonbiete requested a review from vgrassia March 10, 2026 20:19
Use environment variables instead of direct template expansion
in shell scripts to prevent potential code injection vulnerabilities.
@github-actions
Copy link

github-actions bot commented Mar 10, 2026

Logo
Checkmarx One – Scan Summary & Details23a48220-ac54-4293-98e4-d7beb4b9cff5

Great job! No new security vulnerabilities introduced in this pull request

@sonarqubecloud
Copy link

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.

1 participant