feat: Support OIDC custom property claims for Actions#4411
Open
sswane wants to merge 7 commits into
Open
Conversation
gmlewis
reviewed
Jul 25, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4411 +/- ##
=======================================
Coverage 97.52% 97.53%
=======================================
Files 193 193
Lines 19668 19709 +41
=======================================
+ Hits 19182 19223 +41
Misses 268 268
Partials 218 218 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
gmlewis
approved these changes
Jul 26, 2026
| // GitHub API docs: https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#create-an-oidc-custom-property-inclusion-for-an-enterprise | ||
| // | ||
| //meta:operation POST /enterprises/{enterprise}/actions/oidc/customization/properties/repo | ||
| func (s *ActionsService) SetEnterpriseOIDCCustomPropertyClaim(ctx context.Context, enterprise string, body OIDCCustomPropertyClaim) (*OIDCCustomPropertyClaim, *Response, error) { |
Contributor
Author
There was a problem hiding this comment.
ah right. just added a new type OIDCCustomPropertyClaimResponse and updated the List/GET methods to use that instead.
| // GitHub API docs: https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#create-an-oidc-custom-property-inclusion-for-an-organization | ||
| // | ||
| //meta:operation POST /orgs/{org}/actions/oidc/customization/properties/repo | ||
| func (s *ActionsService) SetOrgOIDCCustomPropertyClaim(ctx context.Context, org string, body OIDCCustomPropertyClaim) (*OIDCCustomPropertyClaim, *Response, error) { |
Contributor
There was a problem hiding this comment.
same here.
Let's introduce a new request struct for this.
Author
There was a problem hiding this comment.
I ended up making OIDCCustomPropertyClaimResponse and updating the List/GET methods to use that but I can instead switch it back & create the Request one if you prefer.
Co-authored-by: Dhananjay Mishra <technicaldmcontact@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
GET,POST,DELETEmethods for enterprises and organizations OIDC custom property claims for GitHub Actions./enterprises/{enterprise}/actions/oidc/customization/properties/repo/orgs/{org}/actions/oidc/customization/properties/repoAPI Docs: https://docs.github.com/en/rest/actions/oidc?apiVersion=2026-03-10
closes #4407