dotnet / dotnet/dotnet-docker

New Syft images should automatically be mirrored to the public cache ACR

Open
#5,847 0 comments 0 reactions 0 assignees View on GitHub
area-infrastructure
Dominant language
Dockerfile
Stars
4.9k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
26

Description

Related: #4545, #5724

In dependency update PRs that update the Syft image tag, all PR validation legs will fail since the new Syft image has not been uploaded to the cache ACR. For example, https://github.com/dotnet/dotnet-docker/pull/5846.

The current workaround is to open a cloud shell and mirror the image manually:

```pwsh
# If needed, find the correct subscription ID
$team=""
az account list | Select-String "$team" -Context 5

$sub=""
$acrname=""
$tag=""

# Generate a new public, read-only DockerHub token with a short lifecycle otherwise you may encounter rate-limiting issues
$dockeruname=""
$dockertoken=""

az account set --subscription $sub
az acr import -n $acrname --source docker.io/anchore/syft:$tag --username $dockeruname --password $dockertoken
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.