Skip to content

adding permissions to workflow #2984

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

Merged
merged 1 commit into from
Apr 29, 2022
Merged

adding permissions to workflow #2984

merged 1 commit into from
Apr 29, 2022

Conversation

Poolitzer
Copy link
Member

@Poolitzer Poolitzer commented Apr 28, 2022

While doing the rewrite of my action today, I stumbled upon a new way to give permissions to action tokens. We had the issue that people who don't have write access to our repo (so those who came from forks) didn't generate tokens with write access to the pull request. This resulted in my action failing with the Resource not accessible by integration error, see Poolitzer/pull/2 or the actual errror https://github.com/Poolitzer/python-telegram-bot/runs/6211635584?check_suite_focus=true or https://github.com/python-telegram-bot/python-telegram-bot/runs/6189881374?check_suite_focus=true.

This was unfixable without exposing a token to the public. But with this new setting, we are all good \o/. See Poolitzer#3.

I see no downside to this change.

Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine with me - merge at will :)

Copy link
Member

@harshil21 harshil21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice. I also only see improvements

@Poolitzer Poolitzer merged commit 66b139b into v14 Apr 29, 2022
@Poolitzer Poolitzer deleted the permission_to_workflows branch April 29, 2022 21:49
Bibo-Joshi pushed a commit that referenced this pull request May 6, 2022
@github-actions github-actions bot locked and limited conversation to collaborators May 7, 2022
@Bibo-Joshi Bibo-Joshi added 🔌 enhancement pr description: enhancement and removed enhancement labels Nov 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔌 enhancement pr description: enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants