Skip to content

Add support for setting actions permissions on a repository - #2315

Merged
gmlewis merged 10 commits into
google:masterfrom
h2floh:h2floh/2297
Mar 25, 2022
Merged

Add support for setting actions permissions on a repository#2315
gmlewis merged 10 commits into
google:masterfrom
h2floh:h2floh/2297

Conversation

@h2floh

@h2flohh2floh commented Mar 16, 2022

Copy link
Copy Markdown

👋 Hello there!

Couldn't find a PR for it yet so added functionality requested in #2297
Sorry if I pushed myself before @cfarrend in doing it but I will need the changes.

Went through the contributing guide and also added an example to test the change end2end.

Thanks everyone!

Fixes: #2297.

Signed-off-by: GitHub <noreply@github.com>
@google-cla

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.

@codecov

codecovBot commented Mar 16, 2022

Copy link
Copy Markdown

Codecov Report

Merging #2315 (ddff22b) into master (f859098) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@ Coverage Diff @@## master #2315 +/- ##
==========================================
+ Coverage 97.84% 97.85% +0.01% 
==========================================
Files 115 117 +2 Lines 10416 10466 +50 ==========================================
+ Hits 10192 10242 +50 
Misses 156 156 Partials 68 68 
Impacted FilesCoverage Δ
github/orgs_actions_allowed.go100.00% <ø> (ø)
github/repos_actions_allowed.go100.00% <100.00%> (ø)
github/repos_actions_permissions.go100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f859098...ddff22b. Read the comment docs.

@h2floh

Copy link
Copy Markdown
Author

Hey @gmlewis , I signed the ICLA after my company asked me to do that. Can you please rerun the cla check. Thanks!

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you, @h2floh !
Just a few tweaks, please, then we should be ready for a second review before merging.

Comment threadexample/actionpermissions/main.go Outdated
Comment threadexample/actionpermissions/main.go Outdated
Comment threadgithub/repos_actions_allowed.go Outdated
Comment threadgithub/repos_actions_allowed.go Outdated
Comment threadgithub/repos_actions_allowed.go
Comment threadgithub/repos_actions_permissions.go Outdated
Comment threadgithub/repos_actions_permissions.go
Comment threadgithub/repos_actions_permissions.go Outdated
Comment threadgithub/repos_actions_permissions.go Outdated
Comment threadgithub/repos_actions_permissions.go Outdated
Florian Wagnerand others added 8 commits March 24, 2022 12:26
Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
@gmlewisgmlewis changed the title Support for setting actions permissions for a repositoryAdd support for setting actions permissions on a repositoryMar 24, 2022
Comment threadgithub/repos_actions_allowed_test.go
Comment threadgithub/repos_actions_permissions_test.go
Signed-off-by: GitHub <noreply@github.com>
@gmlewis

Copy link
Copy Markdown
Collaborator

@Parker77 - do you have time for a code review?

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you, @h2floh !
LGTM.

Awaiting second LGTM before merging.

@Parker77Parker77 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM.

@gmlewis

Copy link
Copy Markdown
Collaborator

Thank you, @Parker77 !
Merging.

@gmlewis
gmlewis merged commit 6d5a72e into google:masterMar 25, 2022
@h2floh
h2floh deleted the h2floh/2297 branch March 25, 2022 03:50
jlaportebot added a commit to jlaportebot/go-github that referenced this pull request Jun 28, 2026
Sign up for freeto 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.

Support for setting actions permissions for a repository

3 participants

@h2floh@gmlewis@Parker77