Skip to content

Commit 8941ff5

Browse files
asciimikeethanpalm
andauthored
Adding docs on how to use with AWS ECR (github#18744)
* Adding docs on how to use with AWS ECR, given customer confusion in dependabot/dependabot-core#3457 * Explicitly refer to docker-registry type Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
1 parent cda1bc9 commit 8941ff5

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

content/code-security/supply-chain-security/configuration-options-for-dependency-updates.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,19 @@ registries:
767767
```
768768
{% endraw %}
769769

770+
The `docker-registry` type can also be used to pull from Amazon ECR using static AWS credentials.
771+
772+
{% raw %}
773+
```yaml
774+
registries:
775+
ecr-docker:
776+
type: docker-registry
777+
url: https://1234567890.dkr.ecr.us-east-1.amazonaws.com
778+
username: ${{secrets.ECR_AWS_ACCESS_KEY_ID}}
779+
password: ${{secrets.ECR_AWS_SECRET_ACCESS_KEY}}
780+
```
781+
{% endraw %}
782+
770783
#### `git`
771784

772785
The `git` type supports username and password.
@@ -907,4 +920,4 @@ registries:
907920
url: https://rubygems.pkg.github.com/octocat/github_api
908921
token: ${{secrets.MY_GITHUB_PERSONAL_TOKEN}}
909922
```
910-
{% endraw %}
923+
{% endraw %}

0 commit comments

Comments
 (0)