[2022-11-23]: Dependabot support for private Hex repositories - [GA] #8667 (#32661)

Co-authored-by: Landon Grindheim <landon.grindheim@gmail.com>
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
This commit is contained in:
Anne-Marie 2022-11-23 21:08:16 +01:00 коммит произвёл GitHub
Родитель 18d23e91f3
Коммит f7d1ef5023
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 27 добавлений и 0 удалений

Просмотреть файл

@ -841,6 +841,27 @@ registries:
```
{% endraw %}
{% ifversion dependabot-hex-self-hosted-support %}
### `hex-repository`
The `hex-repository` type supports an authentication key.
`repo` is a required field, which must match the name of the repository used in your dependency declaration.
The `public-key-fingerprint` is an optional configuration field, representing the fingerprint of the public key for the Hex repository. `public-key-fingerprint` is used by Hex to establish trust with the private repository. The `public-key-fingerprint` field can be either listed in plaintext or stored as a {% data variables.product.prodname_dependabot %} secret.
{% raw %}
```yaml
registries:
github-hex-repository:
type: hex-repository
repo: private-repo
url: https://private-repo.example.com
auth-key: ${{secrets.MY_AUTH_KEY}}
public-key-fingerprint: ${{secrets.MY_PUBLIC_KEY_FINGERPRINT}}
```
{% endraw %}{% endif %}
### `maven-repository`
The `maven-repository` type supports username and password.

Просмотреть файл

@ -0,0 +1,6 @@
# Reference: issue #8667
# Adding support for self-hosted Hex repositories
versions:
fpt: '*'
ghec: '*'
ghes: '>= 3.8'