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

Introduce some code owner mistakes for testing #9

Closed
wants to merge 3 commits into from

Conversation

infinisil
Copy link
Member

This is just to test #8. Needs to be a separate PR because of pull_request_target, which takes workflow definitions from the PR base branch.

@infinisil
Copy link
Member Author

Turns out we need different GitHub App permissions now:

    [err] line 3: Cannot initialize organization member list: GET https://api.github.com/repos/NixOS/org/collaborators?per_page=100: 403 Resource not accessible by integration []

We shouldn't use personal access tokens, instead we created a GitHub App
with read-only access to just this repository.

While codeowners-validator supports GitHub App authentication,
the same cannot be said for the hacky script I wrote because there was no support
for checking write access: mszostok/codeowners-validator#157

Instead of trying to hack the script more to make it work with GitHub App authentication,
I decided to implement it into codeowners-validator itself: mszostok/codeowners-validator#222

Because it's not merged/released yet, we need to build it ourselves,
so I added some Nix to do that reproducibly.
@infinisil
Copy link
Member Author

Can confirm that it works:

Base automatically changed from github-app to main April 26, 2024 19:04
@infinisil infinisil closed this Apr 26, 2024
@infinisil infinisil deleted the github-app-testing branch April 26, 2024 19:10
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.

1 participant