-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix: allow mkdocs preview job to write comments on PRs #2091
Conversation
Preview url: https://benefits-2091--cal-itp-previews.netlify.app |
It works! |
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.
Just to make sure I understand, it was broken specifically for dependabot PRs right?
Yes this fix is related to Dependabot PRs. There was a separate issue with Dependabot PRs not having access to the secrets (because there is a separate set of secrets specifically for Dependabot): #2087 (review) Once I fixed that, this issue came up where the workflow couldn't add the preview URL comment, and it was because of this missing permission: https://github.com/cal-itp/benefits/actions/runs/9070328822/job/24952931531#step:8:31 I think the For example we had a docs update back in April and the preview URL comment was added successfully: #2020 (comment) |
Makes sense! I thought I had seen it work before, so this would explain the difference. Thanks 🙏 |
This permission is needed to allow the step that adds a comment with the preview URL