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

feat(services/ghac): Allow explicitly setting ghac endpoint/token, not just env vars #3177

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Sep 25, 2023

This adjusts the GitHub Actions Cache service to allow explicitly setting the URL (via .endpoint(...)) and the runtime token (via .runtime_token(...)), in addition to the defaults of reading the ACTIONS_CACHE_URL and ACTIONS_RUNTIME_TOKEN environment variables.

This gives more control over the use of this service, such as in the Pants build system (I'm adding support in pantsbuild/pants#19831): for Pants, the caching system runs in a background daemon that is passed some configuration by a client, and it's nice to not have to propagate environment variables into the daemon, instead, it's nicer for the client to read the environment and pass the values as 'normal' configuration.

@huonw huonw requested a review from Xuanwo as a code owner September 25, 2023 08:20
@Xuanwo Xuanwo changed the title Allow explicitly setting ghac endpoint/token, not just env vars feat(services/ghac): Allow explicitly setting ghac endpoint/token, not just env vars Sep 25, 2023
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thanks! Mostly LGTM, just need to make our CI happy.

@huonw
Copy link
Contributor Author

huonw commented Sep 25, 2023

Oops, fixed. Thanks!

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@Xuanwo Xuanwo merged commit d1f8de4 into apache:main Sep 25, 2023
@huonw huonw deleted the huonw/ghac-auth branch September 25, 2023 22:40
huonw pushed a commit to pantsbuild/pants that referenced this pull request Oct 22, 2023
The pull requests apache/opendal#3163
and apache/opendal#3177 have been
merged and included in OpenDAL version 0.41. This PR will update OpenDAL
to version 0.41, allowing us to rely on tags rather than a specific
GitHub commit.

Signed-off-by: GitHub <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants