Skip to content

Commit c80a052

Browse files
justo-mendjustclararkins
authored
docs: add documentation for the Developer Portal host rules credentials (#32542)
Co-authored-by: Justin Clareburt <[email protected]> Co-authored-by: Rhys Arkins <[email protected]>
1 parent 741488f commit c80a052

File tree

6 files changed

+19
-3
lines changed

6 files changed

+19
-3
lines changed
Loading
Loading

docs/usage/getting-started/private-packages.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ If you need to provide credentials to the Mend Renovate App, please do this:
611611
}
612612
```
613613

614-
For more details, see [Using Secrets with Mend Cloud Apps](../mend-hosted/app-secrets.md).
614+
For more details, see [Using Secrets with Mend Cloud Apps](../mend-hosted/credentials.md).
615615

616616
### Access to GitHub Actions Secrets
617617

docs/usage/mend-hosted/.pages

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
title: Mend-hosted Apps
22
nav:
33
- 'Configuration': 'hosted-apps-config.md'
4-
- 'App Secrets': 'app-secrets.md'
4+
- 'Credentials': 'credentials.md'
55
- 'Migrating Secrets': 'migrating-secrets.md'

docs/usage/mend-hosted/app-secrets.md docs/usage/mend-hosted/credentials.md

+16
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ To add a secret for the Mend cloud app:
3131
![Credentials settings page](../assets/images/app-settings/app-credentials.png)
3232

3333
4. Reference the secret from Renovate config files inside the repo.
34+
Alternatively, you can use the Host Rules UI (see below).
3435

3536
```json
3637
{
@@ -43,6 +44,21 @@ To add a secret for the Mend cloud app:
4344
}
4445
```
4546

47+
### Adding a host rule through the UI
48+
49+
You can centrally add/configure Host Rules through the Mend UI as an alternative to including them in Renovate presets.
50+
51+
1. Open the _Credentials_ section of the settings page for the relevant Org or Repo.
52+
2. Select `ADD HOST RULE` to open the "Add a Host Rule" dialog box.
53+
54+
![Add Host Rule](../assets/images/app-settings/add-host-rule.png)
55+
56+
3. Fill out the details for your host rule.
57+
58+
As an example, if you are a Bitbucket or Azure DevOps user, and you want to specify a github.com token to fetch release notes and enable github-based datasources, you could create a host rule like this:
59+
60+
![Host Rules dialog box](../assets/images/app-settings/host-rules.png)
61+
4662
## Organization secrets vs repository secrets
4763

4864
### Secret scope

docs/usage/mend-hosted/migrating-secrets.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ If you were expecting to import a secret originally encrypted by Renovate:
102102

103103
## Related links
104104

105-
- [Using Secrets with Mend Cloud Apps](app-secrets.md)
105+
- [Using Secrets with Mend Cloud Apps](credentials.md)

0 commit comments

Comments
 (0)