Skip to content

Commit f7d1ef5

Browse files
am-steadlandongrindheimmchammer01
authored
[2022-11-23]: Dependabot support for private Hex repositories - [GA] #8667 (github#32661)
Co-authored-by: Landon Grindheim <[email protected]> Co-authored-by: mc <[email protected]>
1 parent 18d23e9 commit f7d1ef5

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

content/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,27 @@ registries:
841841
```
842842
{% endraw %}
843843

844+
{% ifversion dependabot-hex-self-hosted-support %}
845+
### `hex-repository`
846+
847+
The `hex-repository` type supports an authentication key.
848+
849+
`repo` is a required field, which must match the name of the repository used in your dependency declaration.
850+
851+
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.
852+
853+
{% raw %}
854+
```yaml
855+
registries:
856+
github-hex-repository:
857+
type: hex-repository
858+
repo: private-repo
859+
url: https://private-repo.example.com
860+
auth-key: ${{secrets.MY_AUTH_KEY}}
861+
public-key-fingerprint: ${{secrets.MY_PUBLIC_KEY_FINGERPRINT}}
862+
```
863+
{% endraw %}{% endif %}
864+
844865
### `maven-repository`
845866

846867
The `maven-repository` type supports username and password.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Reference: issue #8667
2+
# Adding support for self-hosted Hex repositories
3+
versions:
4+
fpt: '*'
5+
ghec: '*'
6+
ghes: '>= 3.8'

0 commit comments

Comments
 (0)