Skip to content

Use ref instead of sha for CI config variables

What does this MR do?

Fixes a minor bug introduced in !66852 (merged)

A SHA cannot be used as a ref for variable expension. The ref is meant to be a branch name or a tag name, and it is used to decide if the branch or tag is protected. Passing a sha results in the ref getting treated as unprotected, unless the sha happens to match a protected branch or tag (which is a security issue).

See #337344 (closed)

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Hordur Freyr Yngvason

Merge request reports