Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix and improve automation around MAINTAINERS.yaml #1664

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

aeworxet
Copy link
Contributor

This PR is a work in progress.

Related to #1620

@aeworxet
Copy link
Contributor Author

aeworxet commented Feb 3, 2025

I tried nearly every option specified in the GitHub Docs, both with fine-grained and legacy tokens, but

  • with github-token specified I get Error: Input required and not supplied: github-token

  • without github-token specified and using any other method of authentication I get Resource not accessible by integration

The property permissions, neither with actions: write nor with write-all, has no effect in any place of the workflow.

The request itself successfully executes manually with header

Authorization: token token_specified_as_GH_TOKEN_in_GH_Actions

so there is no mistake in it.

@derberg, do you have ideas on what else could be researched?

@Shurtu-gal
Copy link
Contributor

@aeworxet If it is working manually then there is some problem in the workflow itself.

Could you try passing secrets.GH_TOKEN to github-token itself?

You could try this endpoint as well https://docs.github.com/en/rest/orgs/members?apiVersion=2022-11-28#create-an-organization-invitation

Also better would be to use their calls itself instead of raw API calls.https://octokit.github.io/rest.js/v21/#orgs-create-invitation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants