-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement: Update Permissions of generated workflows to support Private Repos #7691
Conversation
Any response at all would be great, even if it's a no... I see other PRs getting closed while this sits idle, for a rather small change. |
We are looking at it! Will update based on what we decide to do. |
sounds good, thank you |
@spellegrino021 it is now August :) |
Hey! Testing this out now. For Web Apps I tested with private repositories and was able to have a successful build and deployment. I think you were specifically having an issue with Function apps but I wasn't able to repro with a python function app. Mind telling me which stack you were working with and the exact error and step of the workflow file it was happening at? The change you are proposing is for all web and function apps, so it might be better to limit it to just function apps as needed. |
The stack was using a Function App with PowerShell Core, deploying from GitHub Actions with the premade/canned workflow. |
Are we any closer to a merge or close? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved conflicts in updating from base.
Any particular this very small improvement was rejected @spellegrino021 ? What is the issue here? |
Following along as I ran into this issue, too Edit: Confirmed adding |
Sadly @spellegrino021 closed the PR for some undisclosed reason, so we'll continue resorting to manually updating our workflows on new deploys because adding one line which is documented as required by GitHub docs is too much effort? Even though they just needed to read a paragraph of GitHub docs and let a test suite run? |
I ended up including this in a different PR which will ship in Feb. |
@spellegrino021 May we know which PR so we can subscribe to it? |
Very cool, close my PR and have the change I identified and created a PR for copied into a different PR. Thanks 👍🏻 |
Minor update / patch to include support for Private Repositories out of the box.
Due to
id-token: write
being set statically on the generated workflow, other permissions are set / unset tonone
as outlined in GitHub Action docs.I have updated the permissions constant to include
contents: read #Required to enable use with Private Repositories
The Action should work out of the box now regardless of whether the Repository is Public or Private.