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

Fix the input for list-targets action #2276

Conversation

yuya-takeyama
Copy link
Contributor

@yuya-takeyama yuya-takeyama commented Feb 8, 2024

Seeing action.yaml in list-targets, GitHub API token should be passed by github_token input:
https://github.com/suzuki-shunsuke/tfaction/blob/v1.0.3/list-targets/action.yaml

Without it, default: ${{ github.token }} is used and it lacks the required pull_requests permission.

time="2024-02-08T09:15:05Z" level=fatal msg="get a pull request: GET https://api.github.com/repos/***/***/pulls/***: 403 Resource not accessible by integration []"

I guess the error message is from ci-info:
https://github.com/suzuki-shunsuke/ci-info/blob/36542e1d5bf513b49be0432eea435dffaa0d463d/pkg/controller/controller.go#L123

@suzuki-shunsuke
Copy link
Owner

Thank you for your contribution!
Nice catch!

@suzuki-shunsuke suzuki-shunsuke merged commit de9db13 into suzuki-shunsuke:main Feb 8, 2024
13 checks passed
@yuya-takeyama yuya-takeyama deleted the fix-the-input-for-list-targets-action branch February 8, 2024 13:17
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.

2 participants