@Vardhan Reddy Thanks for reaching out.
You are correct that storing the PAT in the header section of the HTTP action is not secure. It's recommended to use Azure Key Vault to store secrets like PATs and access them securely in your Logic App.
- Create an Azure Key Vault and store your PAT as a secret in it. You can follow the instructions in this document to create a Key Vault and store a secret.
- In your Logic App, add a "Get Secret" action from the Azure Key Vault connector. You can find this action by searching for "Get Secret" in the search box.
- Configure the "Get Secret" action to retrieve the PAT secret from the Key Vault. You will need to provide the Key Vault name, secret name, and version. You can also choose to output the secret value to a variable in your Logic App.
- Now use the output of Get Secret action in any of the action.
In case if you are getting any error please share the screenshoot of your workflow, along with the configuration that you have configured and error message that you are getting.
Feel free to get back to me if you need any assistance.