The agent has no access to the secret. It has a placeholder that is replaced at a higher level. When it makes the network request the secret is substituted but that is outside of the caller's worldview.
So what stops it from sending a network request to a git repo that pushes what that placeholder resolves to?
So what stops it from sending a network request to a git repo that pushes what that placeholder resolves to?