Deployment of YAML file for Logic Apps from Github fails due to missing line of code required for permissions #293
OmarAbuArisheh
started this conversation in
Feature asks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Investigative information
We have noticed that when trying to Save configuration in the Deployment Center of a Logic App we are getting a Fail in step "Checkout GitHub Actions". After discussion with other Teams in our company, we know that we can fix it by adding 'contents: read' in row 21 of the *.yml file., but we want to know if this can be somehow fixed to avoid that permanently.
https://github.com/Azure/azure-functions-ux/blob/555a525bf52a92d47c1f710456d6a2dc2d4035d0/server/src/workflows/2022-10-01/function-app-configs/dotnetcore-windows.config.yml
Please provide the following:
Timestamp: NA
Function App version: 4
Function App name: NA
Function name(s) (as appropriate): NA
Invocation ID: NA
Region: NA
Repro steps
Provide the steps required to reproduce the problem:
Browse to Logic Apps Standard, go to Deployment Center, try to deploy new Logic App from Github

An error will appear
Expected behavior
Provide a description of the expected behavior.
Deployment should be successful.
Actual behavior
Provide a description of the actual behavior observed.
Getting a permission error as the original YAML file is missing a line of code to address this issue.
Known workarounds
Provide a description of any known workarounds.
Add in line 21: 'contents: read'
Related information
Provide any related information
Programming language used
Links to source
Bindings used
Below is the code without the mentioned part (it should be added after id-token):
Beta Was this translation helpful? Give feedback.
All reactions