-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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: auto inject Bitrise default host rule #30490
base: main
Are you sure you want to change the base?
feat: auto inject Bitrise default host rule #30490
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still concerned that it will break exising users
```json title="Host Rule which matches the Bitrise step lib repository and datasource" | ||
{ | ||
"hostRules": [ | ||
{ | ||
"hostType": "bitrise", | ||
"matchHost": "https://api.github.com/repos/my-org/my-repo/contents" | ||
} | ||
] | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like having a host rule in docs which "does nothing". Would adding a dummy token here be appropriate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think this can cause harm 🤷♂️
What do you expect to break / cause harm? 🤔 The token is scoped to the repository. |
I'm not sure. it's a feeling. |
@secustor Why was this closed? Is it not getting merged? |
I have accidentally deleted the branch, while cleaning up my fork. |
Changes
Injects new hostRules scoped to the
bitrise
hostType and matchHosthttps://api.github.com/repos/bitrise-io/bitrise-steplib/contents
.Context
Currently, by default no authorization header are added while looking up Bitrise data, which results in rate limiting for bigger runs.
This is an alternative to setting the hostType to
github
.Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: