When attempting to use RepostioryFile resource with a branchSelector instead of branch, the value returned by the referenced object is the terraform ID of the resource, which unfortunately is not the branch name, but repository_name:branch.
E.g.: my-repo:main instead of main .
This in turn causes the resource to receive a confusing error:
unexpected status code: 404 Not Found
There's a need to use the branch attribute of the terraform resource for this selector, instead of the default ID.
When attempting to use
RepostioryFile
resource with abranchSelector
instead ofbranch
, the value returned by the referenced object is the terraform ID of the resource, which unfortunately is not the branch name, butrepository_name:branch
. E.g.:my-repo:main
instead ofmain
.This in turn causes the resource to receive a confusing error:
There's a need to use the
branch
attribute of the terraform resource for this selector, instead of the default ID.