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

Unnecessary failure of test of GitHub token #173

Open
Nuru opened this issue Sep 23, 2022 · 0 comments
Open

Unnecessary failure of test of GitHub token #173

Nuru opened this issue Sep 23, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Nuru
Copy link

Nuru commented Sep 23, 2022

Using v0.7.1 with our PAT, the checks succeed. Using v0.7.4 they fail with:

 level=fatal msg="while checking if 'owners' checker is satisfied: missing scopes: \"read:org\""

Obviously the token has the permissions is needs, and it is configured with read:org scope, so I don't know why it is failing.

This works:

    - uses: mszostok/codeowners-validator@v0.7.1
      name: "Full check of CODEOWNERS"
      with:
        checks: "syntax,owners,duppatterns"
        owner_checker_allow_unowned_patterns: "false"
        # GitHub access token is required only if the `owners` check is enabled
        github_access_token: "${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}"

changing 0.7.1 to 0.7.4 fails with the above error.

@Nuru Nuru added the bug Something isn't working label Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants