Skip to content

fix(#1734): scope mint token to enabled repos only in repo-maintenance#1756

Open
rh-hemartin wants to merge 1 commit into
mainfrom
fix/1734-repo-maintenance-token-scope
Open

fix(#1734): scope mint token to enabled repos only in repo-maintenance#1756
rh-hemartin wants to merge 1 commit into
mainfrom
fix/1734-repo-maintenance-token-scope

Conversation

@rh-hemartin
Copy link
Copy Markdown
Contributor

Summary

  • repo-maintenance.yml passed all repos (enabled + disabled) to mint-token, causing GitHub to return 422 when disabled repos aren't covered by the app installation
  • Filter to enabled: true only, matching the behaviour of reconcile-repos.sh

Test plan

  • Verify yq expression returns only enabled repos: yq '[.repos | to_entries[] | select(.value.enabled == true) | .key] | join(",")' config.yaml
  • Trigger repo-maintenance on a .fullsend repo that has disabled repos — confirm no 422 from mint

Closes #1734

🤖 Generated with Claude Code

Extract enrolled repo names filters .repos | keys, passing all repos
(enabled and disabled) to mint-token. GitHub returns 422 when the
requested repos list includes repos not covered by the app installation.

Filter to enabled: true only, matching reconcile-repos.sh behaviour.

Closes #1734

Signed-off-by: Hector Martinez <hemartin@redhat.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Site preview

Preview: https://d5cebe2c-site.fullsend-ai.workers.dev

Commit: 6b862779eac4ae8e97001df2d99e6291c6eefd9f

@fullsend-ai-review
Copy link
Copy Markdown

fullsend-ai-review Bot commented Jun 1, 2026

Review

Findings

No findings.

Previous run

Review

Findings

No findings.

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Jun 1, 2026
@ralphbean
Copy link
Copy Markdown
Contributor

/fs-review

@fullsend-ai-review fullsend-ai-review Bot added ready-for-merge All reviewers approved — ready to merge and removed ready-for-merge All reviewers approved — ready to merge labels Jun 1, 2026
@rh-hemartin rh-hemartin self-assigned this Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge All reviewers approved — ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

repo-maintenance: mint-token scoped to all repos, ignoring enabled: false

2 participants