Skip to content

fix(#997): use actions_variables instead of variables for GitHub API permission key - #1004

Closed
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/997-fix-actions-variables-key
Closed

fix(#997): use actions_variables instead of variables for GitHub API permission key#1004
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/997-fix-actions-variables-key

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

The AppPermissions JSON tag and the mint's rolePermissions map both used "variables" as the permission key. GitHub's API expects "actions_variables" for the Actions variables permission. This mismatch caused two problems:

  1. The installer's permission check reported the app was missing
    variables:read even when actions_variables:read was configured.
  2. The mint requested "variables": "read" when creating installation
    tokens, which GitHub silently ignored, resulting in 403 errors
    when accessing /repos/{owner}/{repo}/actions/variables/{name}.

Changed the JSON tag in AppPermissions from "variables" to "actions_variables" and updated the fullsend role in rolePermissions to use "actions_variables" as the map key. Added tests verifying both the JSON serialization key and the role permission key.

Note: pre-commit could not run (network error, exit 3). Manual pre-commit verification required.


Closes #997

Post-script verification

  • Branch is not main/master (agent/997-fix-actions-variables-key)
  • Secret scan passed (gitleaks — 56dbc6e992087805c0a4a24c9df39dfefc056a6f..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

…permission key

The AppPermissions JSON tag and the mint's rolePermissions map both
used "variables" as the permission key. GitHub's API expects
"actions_variables" for the Actions variables permission. This
mismatch caused two problems:

1. The installer's permission check reported the app was missing
   variables:read even when actions_variables:read was configured.
2. The mint requested "variables": "read" when creating installation
   tokens, which GitHub silently ignored, resulting in 403 errors
   when accessing /repos/{owner}/{repo}/actions/variables/{name}.

Changed the JSON tag in AppPermissions from "variables" to
"actions_variables" and updated the fullsend role in
rolePermissions to use "actions_variables" as the map key.
Added tests verifying both the JSON serialization key and the
role permission key.

Note: pre-commit could not run (network error, exit 3).
Manual pre-commit verification required.

Closes #997
@github-actions

Copy link
Copy Markdown

fullsend review is working on this — view logs

@ralphbean

Copy link
Copy Markdown
Member

Duplicate of #998

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: use actions_variables instead of variables for GitHub API permission key

2 participants