Skip to content

Commit 3206245

Browse files
authored
Merge branch 'main' into 8614-RegexReplicationFilters
2 parents 97d495e + 29cdc39 commit 3206245

File tree

5,229 files changed

+15446
-1511848
lines changed

Some content is hidden

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

5,229 files changed

+15446
-1511848
lines changed

.github/workflows/CI.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
- ubuntu-latest
4242
timeout-minutes: 100
4343
steps:
44-
- name: Set up Go 1.20
45-
uses: actions/setup-go@v1
44+
- name: Set up Go 1.21
45+
uses: actions/setup-go@v5
4646
with:
47-
go-version: 1.20.7
47+
go-version: 1.21.5
4848
id: go
4949
- uses: actions/checkout@v3
5050
with:
@@ -89,7 +89,7 @@ jobs:
8989
bash ./tests/showtime.sh ./tests/ci/ut_run.sh $IP
9090
df -h
9191
- name: Codecov For BackEnd
92-
uses: codecov/codecov-action@v3
92+
uses: codecov/codecov-action@v4
9393
with:
9494
file: ./src/github.com/goharbor/harbor/profile.cov
9595
flags: unittests
@@ -102,10 +102,10 @@ jobs:
102102
- ubuntu-latest
103103
timeout-minutes: 100
104104
steps:
105-
- name: Set up Go 1.20
106-
uses: actions/setup-go@v1
105+
- name: Set up Go 1.21
106+
uses: actions/setup-go@v5
107107
with:
108-
go-version: 1.20.7
108+
go-version: 1.21.5
109109
id: go
110110
- uses: actions/checkout@v3
111111
with:
@@ -157,10 +157,10 @@ jobs:
157157
- ubuntu-latest
158158
timeout-minutes: 100
159159
steps:
160-
- name: Set up Go 1.20
161-
uses: actions/setup-go@v1
160+
- name: Set up Go 1.21
161+
uses: actions/setup-go@v5
162162
with:
163-
go-version: 1.20.7
163+
go-version: 1.21.5
164164
id: go
165165
- uses: actions/checkout@v3
166166
with:
@@ -212,10 +212,10 @@ jobs:
212212
- ubuntu-latest
213213
timeout-minutes: 100
214214
steps:
215-
- name: Set up Go 1.20
216-
uses: actions/setup-go@v1
215+
- name: Set up Go 1.21
216+
uses: actions/setup-go@v5
217217
with:
218-
go-version: 1.20.7
218+
go-version: 1.21.5
219219
id: go
220220
- uses: actions/checkout@v3
221221
with:
@@ -265,10 +265,10 @@ jobs:
265265
- ubuntu-latest
266266
timeout-minutes: 100
267267
steps:
268-
- name: Set up Go 1.20
269-
uses: actions/setup-go@v1
268+
- name: Set up Go 1.21
269+
uses: actions/setup-go@v5
270270
with:
271-
go-version: 1.20.7
271+
go-version: 1.21.5
272272
id: go
273273
- uses: actions/checkout@v3
274274
with:
@@ -317,7 +317,7 @@ jobs:
317317
- ubuntu-latest
318318
timeout-minutes: 100
319319
steps:
320-
- uses: actions/setup-node@v3
320+
- uses: actions/setup-node@v4
321321
with:
322322
node-version: '18'
323323
- uses: actions/checkout@v3
@@ -331,7 +331,7 @@ jobs:
331331
bash ./tests/showtime.sh ./tests/ci/ui_ut_run.sh
332332
df -h
333333
- name: Codecov For UI
334-
uses: codecov/codecov-action@v3
334+
uses: codecov/codecov-action@v4
335335
with:
336336
file: ./src/github.com/goharbor/harbor/src/portal/coverage/lcov.info
337337
flags: unittests

.github/workflows/auto_assign_prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Set the author of a PR as the assignee
16-
uses: kentaro-m/auto-assign-action@v1.2.5
16+
uses: kentaro-m/auto-assign-action@v2.0.0
1717
with:
1818
configuration-path: ".github/auto-assignees.yml"

.github/workflows/build-package.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ jobs:
1616
- ubuntu-20.04
1717
steps:
1818
- uses: actions/checkout@v3
19-
- uses: 'google-github-actions/auth@v1'
19+
- uses: 'google-github-actions/auth@v2'
2020
with:
2121
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
22-
- uses: google-github-actions/setup-gcloud@v1
22+
- uses: google-github-actions/setup-gcloud@v2
2323
with:
2424
version: '430.0.0'
2525
- run: gcloud info
26-
- name: Set up Go 1.20
27-
uses: actions/setup-go@v1
26+
- name: Set up Go 1.21
27+
uses: actions/setup-go@v5
2828
with:
29-
go-version: 1.20.7
29+
go-version: 1.21.5
3030
id: go
3131
- name: Setup Docker
3232
uses: docker-practice/actions-setup-docker@master

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
# Initializes the CodeQL tools for scanning.
2828
- name: Initialize CodeQL
29-
uses: github/codeql-action/init@v2
29+
uses: github/codeql-action/init@v3
3030
# Override language selection by uncommenting this and choosing your languages
3131
# with:
3232
# languages: go, javascript, csharp, python, cpp, java
@@ -48,4 +48,4 @@ jobs:
4848
# make release
4949

5050
- name: Perform CodeQL Analysis
51-
uses: github/codeql-action/analyze@v2
51+
uses: github/codeql-action/analyze@v3

.github/workflows/conformance_test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
- uses: actions/checkout@v3
2121
- id: 'auth'
2222
name: 'Authenticate to Google Cloud'
23-
uses: google-github-actions/auth@v1
23+
uses: google-github-actions/auth@v2
2424
with:
2525
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
26-
- uses: google-github-actions/setup-gcloud@v1
26+
- uses: google-github-actions/setup-gcloud@v2
2727
- run: gcloud info
28-
- name: Set up Go 1.20
29-
uses: actions/setup-go@v1
28+
- name: Set up Go 1.21
29+
uses: actions/setup-go@v5
3030
with:
31-
go-version: 1.20.7
31+
go-version: 1.21.5
3232
id: go
3333
- uses: actions/checkout@v3
3434
with:

.github/workflows/housekeeping-stale-issues-prs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v8.0.0
10+
- uses: actions/stale@v9.0.0
1111
with:
1212
stale-issue-message: 'This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.'
1313
stale-pr-message: 'This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days.'

.github/workflows/nightly-trivy-scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
# maintain the versions of harbor that need to be actively
1414
# security scanned
15-
versions: [dev, v2.8.0-dev]
15+
versions: [dev, v2.10.0-dev]
1616
# list of images that need to be scanned
1717
images: [harbor-core, harbor-db, harbor-exporter, harbor-jobservice, harbor-log, harbor-portal, harbor-registryctl, prepare]
1818
permissions:
@@ -32,6 +32,6 @@ jobs:
3232
output: 'trivy-results.sarif'
3333

3434
- name: Upload Trivy scan results to GitHub Security tab
35-
uses: github/codeql-action/upload-sarif@v2
35+
uses: github/codeql-action/upload-sarif@v3
3636
with:
3737
sarif_file: 'trivy-results.sarif'

.github/workflows/publish_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
echo "PRE_TAG=$(echo $release | jq -r '.body' | jq -r '.preTag')" >> $GITHUB_ENV
2020
echo "BRANCH=$(echo $release | jq -r '.target_commitish')" >> $GITHUB_ENV
2121
echo "PRERELEASE=$(echo $release | jq -r '.prerelease')" >> $GITHUB_ENV
22-
- uses: 'google-github-actions/auth@v1'
22+
- uses: 'google-github-actions/auth@v2'
2323
with:
2424
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
25-
- uses: google-github-actions/setup-gcloud@v1
25+
- uses: google-github-actions/setup-gcloud@v2
2626
with:
2727
version: '430.0.0'
2828
- name: Prepare Assets

ADOPTERS.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ be added to this list as they transition to production deployments.
1111

1212
<a href="https://www.jd.com" border="0" target="_blank"><img alt="JD.com" src="https://raw.githubusercontent.com/goharbor/website/main/docs/img/adopters/jd.png" height="50"></a>&nbsp; &nbsp; &nbsp;
1313
<a href="https://www.trendmicro.com" border="0" target="_blank"><img alt="trendmicro" src="https://raw.githubusercontent.com/goharbor/website/main/docs/img/adopters/trendmicro.png" height="50"></a>&nbsp; &nbsp; &nbsp; &nbsp;
14+
<a href="https://pitsdatenrettung.de/" target="_blank" border="0"><img alt="PITS Globale Datenrettungsdienste" src="https://raw.githubusercontent.com/goharbor/website/main/docs/img/adopters/pits-globale-datenrettungsdienste.png" height="50"></a>&nbsp; &nbsp; &nbsp; &nbsp;
1415
<a href="https://www.datayes.com" border="0" target="_blank"><img alt="DataYes" src="https://raw.githubusercontent.com/goharbor/website/main/docs/img/adopters/datayes.png" height="50"></a>&nbsp; &nbsp; &nbsp; &nbsp;
1516
<a href="https://www.axatp.com" border="0" target="_blank"><img alt="axatp" src="https://raw.githubusercontent.com/goharbor/website/main/docs/img/adopters/axatp.png" height="50"></a>&nbsp; &nbsp; &nbsp; &nbsp; <br/><br/>
1617
<a href="https://www.360totalsecurity.com/en/" target="_blank" border="0"><img alt="360 Total Security" src="https://raw.githubusercontent.com/goharbor/website/main/docs/img/adopters/360.png" height="50"></a>&nbsp; &nbsp; &nbsp;
@@ -36,8 +37,9 @@ be added to this list as they transition to production deployments.
3637
<a href="http://www.yanrongyun.com" target="_blank" border="0"><img alt="Yanrongyun" src="https://raw.githubusercontent.com/goharbor/website/main/docs/img/adopters/Yanrong.jpg" height="40"></a>&nbsp; &nbsp; &nbsp; &nbsp;
3738
<a href="https://anchore.com" target="_blank" border="0"><img alt="Anchore" src="https://raw.githubusercontent.com/goharbor/website/main/docs/img/adopters/anchore_logo.png" height="40"></a>&nbsp; &nbsp; &nbsp; &nbsp;
3839
<a href="https://www.dynatrace.com/" target="_blank" border="0"><img alt="Dynatrace" src="https://raw.githubusercontent.com/goharbor/website/main/static/img/logos/users-partners/dynatrace-logo.png"></a>&nbsp; &nbsp; &nbsp; &nbsp;
39-
40-
40+
<a href="https://www.home.cern/" target="_blank" border="0">CERN</a>&nbsp; &nbsp; &nbsp; &nbsp;
41+
<a href="https://www.ns.nl/" target="_blank" border="0"><img alt="Nederlandse Spoorwegen" src="https://raw.githubusercontent.com/goharbor/website/main/docs/img/adopters/nederlandse-spoorwegen.png" height="40"></a>&nbsp; &nbsp; &nbsp; &nbsp;
42+
<a href="https://www.de-cix.net/" target="_blank" border="0"><img alt="DE-CIX" src="https://raw.githubusercontent.com/goharbor/website/main/docs/img/adopters/de-cix.png" height="50"></a>&nbsp; &nbsp; &nbsp; &nbsp;
4143

4244
## Success Stories
4345

@@ -87,6 +89,8 @@ feature within Harbor before deploying images into production.
8789
and scan customized container images for different business applications, like
8890
ELK stack, as part of their CI/CD pipeline.
8991

92+
**DE-CIX:** Harbor has been integrated into the application stack to replace the former hosted Docker registry, now known as the Distribution Registry. With Harbor, we have started separating access to project-related images using OIDC group mapping and robot accounts with dedicated permissions. Another significant benefit comes with the implemented vulnerability scanner, which makes vulnerabilities more transparent to our teams.
93+
9094
## Adding your logo
9195

9296
If you would like to add your logo here and to the `Users and Partners of Harbor` section of the website, add a PNG or SVG version of your logo to the [adopters](https://github.com/goharbor/website/tree/main/docs/img/adopters) directory of the [website](https://github.com/goharbor/website) and submit a pull request with your change. Name the image file something that reflects your company (e.g., if your company is called Acme, name the image acme.png). We will follow up and make the change in the goharbor.io website as well.

CONTRIBUTING.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ git fetch $USER
4343
```
4444
**NOTES:** Note that GOPATH can be any directory, the example above uses $HOME/go. Change $USER above to your own GitHub username.
4545

46+
### Build Project
47+
4648
To build the project, please refer the [build](https://goharbor.io/docs/edge/build-customize-contribute/compile-guide/) guideline.
4749

4850
### Repository Structure
@@ -132,12 +134,7 @@ The folder graph below shows the structure of the source code folder `harbor/src
132134
│   ├── registry
133135
│   ├── router
134136
│   ├── v2.0
135-
├── testing # Some utilities to handle testing.
136-
└── vendor # Go code dependencies
137-
├── github.com
138-
├── golang.org
139-
├── google.golang.org
140-
└── gopkg.in
137+
└── testing # Some utilities to handle testing.
141138
```
142139

143140
### Setup Development Environment
@@ -166,11 +163,11 @@ Harbor backend is written in [Go](http://golang.org/). If you don't have a Harbo
166163
| 2.6 | 1.18.6 |
167164
| 2.7 | 1.19.4 |
168165
| 2.8 | 1.20.6 |
169-
| 2.9 | 1.20.7 |
166+
| 2.9 | 1.21.3 |
167+
| 2.10 | 1.21.5 |
170168

171-
Ensure your GOPATH and PATH have been configured in accordance with the Go environment instructions.
172169

173-
**Dependency Management:** Harbor uses [Go modules](https://github.com/golang/go/wiki/Modules) for dependency management of go code. The official maintainers will take the responsibility for managing the code in `vendor` directory. Please don't try to submit a PR to update the dependency code, open an issue instead. If your PR requires a change in the vendor code please make sure you discuss it with the maintainers in advance.
170+
Ensure your GOPATH and PATH have been configured in accordance with the Go environment instructions.
174171

175172
#### Web
176173

@@ -256,7 +253,7 @@ go install github.com/GeertJohan/fgt@latest
256253

257254
#In the #working_dir/harbor, run
258255

259-
go list ./... | grep -v -E 'vendor|tests' | xargs -L1 fgt golint
256+
go list ./... | grep -v -E 'tests' | xargs -L1 fgt golint
260257

261258
```
262259

0 commit comments

Comments
 (0)