compliance: confirm allow_auto_merge is enabled (closes #89)#130
compliance: confirm allow_auto_merge is enabled (closes #89)#130
Conversation
Repository setting allow_auto_merge has been verified and re-applied via GitHub API: gh api -X PATCH repos/petry-projects/markets -F allow_auto_merge=true The dependabot-automerge.yml workflow is already present and matches the org template verbatim. Root cause of recurring audit findings: ORG_SCORECARD_TOKEN lacks the administration:read permission needed to read allow_auto_merge from the GitHub REST API. Without admin scope, the field returns null even though the setting is enabled — a false positive. To permanently resolve, grant ORG_SCORECARD_TOKEN admin-level access to the repository in petry-projects/.github settings. Co-authored-by: don-petry <don-petry@users.noreply.github.com>
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
@don-petry — CI is green (CodeQL and SonarCloud still running but no failures). This PR supersedes #103 and #122 (both still open). What this PR does:
Why the audit keeps firing: Permanent fix: In Once this PR is merged, issue #89 will close automatically. PRs #103 and #122 can be closed as duplicates. |
Automated review — APPROVEDRisk: LOW SummaryThis zero-diff PR is a tracking commit that closes compliance issue #89 by ratifying the org-mandated FindingsMinor
Info
CI statusmergeStateStatus: Reviewed by the don-petry PR-review cascade (triage: haiku 4.5 → deep: sonnet 4.6 + duck: gpt-5.4 → audit: opus 4.6). Reply with |



Summary
allow_auto_merge: truevia GitHub API.github/workflows/dependabot-automerge.ymlmatches org template verbatimVerification
The
dependabot-automerge.ymlworkflow is present and matches the org template atpetry-projects/.github/standards/workflows/dependabot-automerge.ymlverbatim.Why the audit keeps reporting
nullThe
ORG_SCORECARD_TOKENused by the compliance script (scripts/compliance-audit.sh)calls
gh api repos/petry-projects/marketsand reads.allow_auto_merge. This field isonly returned for tokens with admin-level repository access. If
ORG_SCORECARD_TOKENisa fine-grained PAT without
administration: readpermission, GitHub returnsnullforthis field even though the setting is enabled — a false positive.
To permanently resolve: Grant
ORG_SCORECARD_TOKENadmin-level read access torepositories in
petry-projects/.githubsettings.Previous PRs
PRs #103 and #122 covered the same finding but were not merged. This PR supersedes them.
Closes #89
Generated with Claude Code