Skip to content

Commit 4e76c9f

Browse files
committed
Merge branch 'main' of github.com:distribution/distribution
2 parents dbde048 + 9f9289e commit 4e76c9f

2,216 files changed

Lines changed: 220017 additions & 182117 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/labeler.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ area/storage/s3:
5353
- changed-files:
5454
- any-glob-to-any-file:
5555
- registry/storage/driver/s3-aws/**
56+
area/client:
57+
- changed-files:
58+
- any-glob-to-any-file:
59+
- internal/client/**
5660
dependencies:
5761
- changed-files:
5862
- any-glob-to-any-file:

‎.github/workflows/build.yml‎

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,31 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
go:
35-
- 1.23.7
36-
- 1.24.1
35+
- 1.25.x
36+
- 1.26.2
3737
target:
3838
- test-coverage
3939
- test-s3-storage
4040
- test-azure-storage
4141
steps:
4242
-
4343
name: Checkout
44-
uses: actions/checkout@v5
44+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
45+
with:
46+
persist-credentials: false
4547
-
4648
name: Set up Go
47-
uses: actions/setup-go@v5
49+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
4850
with:
4951
go-version: ${{ matrix.go }}
52+
cache: false
5053
-
5154
name: Test
5255
run: |
5356
make ${{ matrix.target }}
5457
-
5558
name: Codecov
56-
uses: codecov/codecov-action@v5
59+
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
5760
with:
5861
directory: ./
5962

@@ -68,13 +71,14 @@ jobs:
6871
steps:
6972
-
7073
name: Checkout
71-
uses: actions/checkout@v5
74+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7275
with:
7376
fetch-depth: 0
77+
persist-credentials: false
7478
-
7579
name: Docker meta
7680
id: meta
77-
uses: docker/metadata-action@v5
81+
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
7882
with:
7983
images: |
8084
${{ env.GHCR_SLUG }}
@@ -99,19 +103,19 @@ jobs:
99103
org.opencontainers.image.description=The toolkit to pack, ship, store, and distribute container content
100104
-
101105
name: Set up Docker Buildx
102-
uses: docker/setup-buildx-action@v3
106+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
103107

104108
-
105109
name: Log in to GitHub Container registry
106110
if: github.event_name != 'pull_request'
107-
uses: docker/login-action@v3
111+
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
108112
with:
109113
registry: ghcr.io
110114
username: ${{ github.actor }}
111-
password: ${{ secrets.GITHUB_TOKEN }}
115+
password: ${{ github.token }}
112116
-
113117
name: Build artifacts
114-
uses: docker/bake-action@v6
118+
uses: docker/bake-action@6614cfa25eff9a0b2b2697efb0b6159e7680d584 # v7.2.0
115119
with:
116120
source: .
117121
targets: artifact-all
@@ -133,14 +137,14 @@ jobs:
133137
tree -nh ./bin
134138
-
135139
name: Upload artifacts
136-
uses: actions/upload-artifact@v4.6.2
140+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
137141
with:
138142
name: registry
139143
path: ./bin/*
140144
if-no-files-found: error
141145
-
142146
name: Build image
143-
uses: docker/bake-action@v6
147+
uses: docker/bake-action@6614cfa25eff9a0b2b2697efb0b6159e7680d584 # v7.2.0
144148
with:
145149
source: .
146150
files: |
@@ -150,7 +154,7 @@ jobs:
150154
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
151155
-
152156
name: GitHub Release
153-
uses: softprops/action-gh-release@v2
157+
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
154158
if: startsWith(github.ref, 'refs/tags/')
155159
with:
156160
draft: true
@@ -159,4 +163,4 @@ jobs:
159163
bin/*.provenance.json
160164
bin/*.sha256
161165
env:
162-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166+
GITHUB_TOKEN: ${{ github.token }}

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,23 @@ jobs:
3434
steps:
3535
-
3636
name: Checkout
37-
uses: actions/checkout@v5
37+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3838
with:
3939
fetch-depth: 2
40+
persist-credentials: false
4041
-
4142
name: Checkout HEAD on PR
4243
if: ${{ github.event_name == 'pull_request' }}
4344
run: |
4445
git checkout HEAD^2
4546
-
4647
name: Initialize CodeQL
47-
uses: github/codeql-action/init@v3.26.5
48+
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
4849
with:
4950
languages: ${{ matrix.language }}
5051
-
5152
name: Autobuild
52-
uses: github/codeql-action/autobuild@v3.26.5
53+
uses: github/codeql-action/autobuild@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
5354
-
5455
name: Perform CodeQL Analysis
55-
uses: github/codeql-action/analyze@v3.26.5
56+
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0

‎.github/workflows/conformance.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
-
1919
name: Build image
20-
uses: docker/bake-action@v6
20+
uses: docker/bake-action@6614cfa25eff9a0b2b2697efb0b6159e7680d584 # v7.2.0
2121
with:
2222
targets: image-local
2323
-
@@ -30,7 +30,7 @@ jobs:
3030
docker run --rm -p 5000:5000 -e REGISTRY_STORAGE_DELETE_ENABLED=true -idt "registry:local"
3131
-
3232
name: Run OCI Distribution Spec conformance tests
33-
uses: opencontainers/distribution-spec@v1.0.1
33+
uses: opencontainers/distribution-spec@10efb871ee08eb13678fe275e2cf89b3df86542b # v1.0.1
3434
env:
3535
OCI_ROOT_URL: ${{ env.OCI_ROOT_URL }}
3636
OCI_NAMESPACE: oci-conformance/distribution-test
@@ -44,7 +44,7 @@ jobs:
4444
run: mkdir -p out/ && mv {report.html,junit.xml} out/
4545
-
4646
name: Upload test results
47-
uses: actions/upload-artifact@v4.6.2
47+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
4848
with:
4949
name: oci-test-results-${{ github.sha }}
5050
path: out/

‎.github/workflows/docs.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
steps:
2626
- name: Setup Pages
2727
id: pages
28-
uses: actions/configure-pages@v5
28+
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
2929

3030
- name: Set up Docker Buildx
31-
uses: docker/setup-buildx-action@v3
31+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
3232

3333
- name: Build docs
34-
uses: docker/bake-action@v6
34+
uses: docker/bake-action@6614cfa25eff9a0b2b2697efb0b6159e7680d584 # v7.2.0
3535
with:
3636
targets: docs-export
3737
provenance: false
@@ -46,7 +46,7 @@ jobs:
4646
done
4747
4848
- name: Upload Pages artifact
49-
uses: actions/upload-pages-artifact@v3
49+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
5050
with:
5151
path: ./build/docs
5252

@@ -71,4 +71,4 @@ jobs:
7171
steps:
7272
- name: Deploy to GitHub Pages
7373
id: deployment
74-
uses: actions/deploy-pages@v4 # or the latest "vX.X.X" version tag for this action
74+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

‎.github/workflows/e2e.yml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ jobs:
2020
steps:
2121
-
2222
name: Checkout
23-
uses: actions/checkout@v5
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2424
with:
2525
fetch-depth: 0
26+
persist-credentials: false
2627
-
2728
name: Build image
28-
uses: docker/bake-action@v6
29+
uses: docker/bake-action@6614cfa25eff9a0b2b2697efb0b6159e7680d584 # v7.2.0
2930
with:
3031
source: .
3132
targets: image-local
@@ -43,9 +44,10 @@ jobs:
4344
steps:
4445
-
4546
name: Checkout
46-
uses: actions/checkout@v5
47+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4748
with:
4849
fetch-depth: 0
50+
persist-credentials: false
4951
-
5052
name: Start E2E environment
5153
run: |

‎.github/workflows/label.yaml‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ concurrency:
55
cancel-in-progress: true
66

77
on:
8-
pull_request_target:
8+
pull_request_target: # zizmor: ignore[dangerous-triggers] does not checkout, safe to use pull_request_target
9+
10+
permissions:
11+
contents: read # to fetch code (actions/checkout)
912

1013
jobs:
1114
labeler:
1215
permissions:
13-
contents: read
14-
pull-requests: write
16+
contents: read # same as global permission
17+
pull-requests: write # required for writing labels
1518
runs-on: ubuntu-latest
1619
steps:
17-
- uses: actions/labeler@v5
18-
with:
19-
dot: true
20+
- uses: actions/labeler@f27b608878404679385c85cfa523b85ccb86e213 # v6.1.0
21+
with:
22+
dot: true

‎.github/workflows/validate.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ jobs:
3030
steps:
3131
-
3232
name: Checkout
33-
uses: actions/checkout@v5
33+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34+
with:
35+
persist-credentials: false
3436
-
3537
name: Run
3638
run: |

‎.golangci.yml‎

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
1-
linters:
1+
version: "2"
2+
3+
formatters:
24
enable:
3-
- staticcheck
4-
- unconvert
55
- gofmt
66
- goimports
7-
- revive
8-
- ineffassign
9-
- govet
10-
- unused
11-
- misspell
7+
8+
linters:
9+
enable:
1210
- bodyclose
11+
- misspell
1312
- prealloc
14-
- errcheck
13+
- revive
14+
- staticcheck
1515
- tparallel
16+
- unconvert
1617

17-
linters-settings:
18-
revive:
19-
rules:
20-
# TODO(thaJeztah): temporarily disabled the "unused-parameter" check.
21-
# It produces many warnings, and some of those may need to be looked at.
22-
- name: unused-parameter
23-
disabled: true
18+
disable:
19+
- errcheck
2420

25-
issues:
26-
exclude-dirs:
27-
- vendor
21+
settings:
22+
revive:
23+
rules:
24+
# TODO(thaJeztah): temporarily disabled the "unused-parameter" check.
25+
# It produces many warnings, and some of those may need to be looked at.
26+
- name: unused-parameter
27+
disabled: true
28+
staticcheck:
29+
checks:
30+
- all
31+
- -QF1008 # Omit embedded fields from selector expression; https://staticcheck.dev/docs/checks/#QF1008
32+
- -ST1000 # Incorrect or missing package comment; https://staticcheck.dev/docs/checks/#ST1000

‎ADOPTERS.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ Harbor, CNCF Graduated project https://goharbor.io/
99
VMware Harbor Registry https://docs.pivotal.io/partners/vmware-harbor/index.html
1010

1111
DigitalOcean Container Registry https://www.digitalocean.com/products/container-registry/
12+
13+
Cloudfleet Container Registry https://cloudfleet.ai/docs/container-registry/overview/

0 commit comments

Comments
 (0)