fix: use actions_variables instead of variables for GitHub API key - #998
Conversation
GitHub's API uses "actions_variables" not "variables" for the repo variables permission. Wrong key caused false "missing permissions" warnings in the installer and silent 403s from minted tokens. Closes #997 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
fullsend review is working on this — view logs |
Site previewPreview: https://ff03a0ba-site.fullsend-ai.workers.dev Commit: |
waynesun09
left a comment
There was a problem hiding this comment.
Verified against the live API — gh api apps/fullsend-fullsend --jq '.permissions' confirms the key is actions_variables, not variables. GitHub docs don't list this key in the installation token schema, but the API uses it. Fix is correct and surgical.
Review: #998Head SHA: 49c91f9 SummaryThis is a correct, minimal bug fix. The two changes — updating the JSON struct tag on FindingsMedium
Low
FooterOutcome: approve |
PR #998 renamed the JSON key from variables to actions_variables. Update the test map key to match. Signed-off-by: Wayne Sun <gsun@redhat.com>
Replace the partial 5-flag "Additional mint flags" table with a comprehensive reference covering all 18 admin install flags. Add sections for admin analyze and admin uninstall commands. Update OAuth scope table for per-repo distinctions. Update ADR 0033 shared flags list. Reflect --skip-mint-check (PR fullsend-ai#998), --app-set (PR fullsend-ai#994), and --inference-wif-provider validation (PR fullsend-ai#1010). Signed-off-by: Wayne Sun <gsun@redhat.com>
Summary
AppPermissions.Variablesfrom"variables"to"actions_variables"to match GitHub's API field namefullsendrole in mintrolePermissionsto use"actions_variables"key so minted tokens actually receive the permissionCloses #997
Related: #996
How to verify
Check the app's permissions as GitHub returns them:
gh api apps/fullsend-fullsend --jq '.permissions'The key for repo variables is
actions_variables, notvariables.Test plan
go vetpasses on both modulesgo test ./internal/forge/github/passesgo test ./...passes in mint modulemake lintpasses🤖 Generated with Claude Code