(MAINT) Add authorized account for live branch targeting#369
Conversation
Prior to this change, the GHA workflow for checking authorization on submitting PRs to the `live` branch didn't include the `authorized_accounts` parameter. When you retrieve the permissions for the `learn-build-service-prod[bot]` account, the API reports that the automation account lacks all permissions. This change adds the bot account to an allow-list to prevent the error.
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 39147af: ✅ Validation status: passed
For more details, please refer to the build report. |
There was a problem hiding this comment.
Pull request overview
This PR adds the learn-build-service-prod[bot] account to an allow-list in the GitHub Actions workflow that checks authorization for PRs targeting the live branch. The bot account's permissions cannot be properly validated through the GitHub API, so it needs to be explicitly authorized.
Changes:
- Added
authorized_accountsparameter to the authorization action in thetargeting-valid-branch.ymlworkflow
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PR Summary
Prior to this change, the GHA workflow for checking authorization on submitting PRs to the
livebranch didn't include theauthorized_accountsparameter.When you retrieve the permissions for the
learn-build-service-prod[bot]account, the API reports that the automation account lacks all permissions.This change adds the bot account to an allow-list to prevent the error.
PR Checklist