Skip to content

Commit 2c339a9

Browse files
authored
Update reference to Dependabot proxy (#1610)
1 parent c1e3288 commit 2c339a9

File tree

10 files changed

+51
-29
lines changed

10 files changed

+51
-29
lines changed

__tests__/cleanup-integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ integration('run', () => {
2020
integration('cleanupOldImageVersions', () => {
2121
const docker = new Docker()
2222
const imageOptions = {
23-
filters: `{"reference":["ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy"]}`
23+
filters: `{"reference":["ghcr.io/dependabot/proxy"]}`
2424
}
2525

2626
const currentImage = PROXY_IMAGE_NAME
27-
const oldImage = `ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy:v2.0.20221204234507@sha256:c4d68b711d260099f5cfa06651910a613617d1c2b585361ac7139904e42a1f59`
27+
const oldImage = `ghcr.io/dependabot/proxy:v2.0.20250520183158@sha256:e98873d74eeb64dc5075d8044cfa4242981ae7ad05e06b17708a3f13719a74f6`
2828

2929
async function clearTestImages(): Promise<void> {
3030
const testImages = await docker.listImages(imageOptions)

__tests__/docker-tags.test.ts

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('Docker tags', () => {
2424

2525
test('PROXY_IMAGE_NAME uses a pinned version and matches the config Dockerfile', () => {
2626
expect(PROXY_IMAGE_NAME).toMatch(
27-
/^ghcr\.io\/github\/dependabot-update-job-proxy\/dependabot-update-job-proxy:v\d.\d.\d{14}@sha256:[a-zA-Z0-9]{64}$/
27+
/^ghcr\.io\/dependabot\/proxy:v\d.\d.\d{14}@sha256:[a-zA-Z0-9]{64}$/
2828
)
2929

3030
expect(PROXY_IMAGE_NAME).toEqual(getImageName('Dockerfile.proxy'))
@@ -37,9 +37,7 @@ describe('Docker tags', () => {
3737
)
3838
}
3939

40-
expect(repositoryName(PROXY_IMAGE_NAME)).toMatch(
41-
'ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy'
42-
)
40+
expect(repositoryName(PROXY_IMAGE_NAME)).toMatch('ghcr.io/dependabot/proxy')
4341
})
4442

4543
test('repositoryName handles named tags', () => {
@@ -106,32 +104,28 @@ describe('Docker tags', () => {
106104
test('digestName returns the image name and digest minus the tagged version or reference', () => {
107105
expect(
108106
digestName(
109-
'ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy:v2.0.20221206155623@sha256:1942aea0f57a3652d7694390dd4d8e6d08abca84b89383ee7ef9c6b57e00d247'
107+
'ghcr.io/dependabot/proxy:v2.0.20260129233510@sha256:aee1af4a514c0c5e573f3b33a51f9f2b9c58234cb011ea4d44b9e05aec92436c'
110108
)
111109
).toMatch(
112-
'ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy@sha256:1942aea0f57a3652d7694390dd4d8e6d08abca84b89383ee7ef9c6b57e00d247'
110+
'ghcr.io/dependabot/proxy@sha256:aee1af4a514c0c5e573f3b33a51f9f2b9c58234cb011ea4d44b9e05aec92436c'
113111
)
114112

115113
expect(
116114
digestName(
117-
'ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy@sha256:1942aea0f57a3652d7694390dd4d8e6d08abca84b89383ee7ef9c6b57e00d247'
115+
'ghcr.io/dependabot/proxy@sha256:aee1af4a514c0c5e573f3b33a51f9f2b9c58234cb011ea4d44b9e05aec92436c'
118116
)
119117
).toMatch(
120-
'ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy@sha256:1942aea0f57a3652d7694390dd4d8e6d08abca84b89383ee7ef9c6b57e00d247'
118+
'ghcr.io/dependabot/proxy@sha256:aee1af4a514c0c5e573f3b33a51f9f2b9c58234cb011ea4d44b9e05aec92436c'
121119
)
122120
})
123121

124122
test('hasDigest identifies when a digest is present', () => {
125123
expect(
126124
hasDigest(
127-
'ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy:v2.0.20221206155623@sha256:1942aea0f57a3652d7694390dd4d8e6d08abca84b89383ee7ef9c6b57e00d247'
125+
'ghcr.io/dependabot/proxy:v2.0.20260129233510@sha256:aee1af4a514c0c5e573f3b33a51f9f2b9c58234cb011ea4d44b9e05aec92436c'
128126
)
129127
).toEqual(true)
130128

131-
expect(
132-
hasDigest(
133-
'ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy:v1'
134-
)
135-
).toEqual(false)
129+
expect(hasDigest('ghcr.io/dependabot/proxy:v1')).toEqual(false)
136130
})
137131
})

__tests__/proxy-integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ integration('ProxyBuilder', () => {
4848
expect(containerInfo.Config.Entrypoint).toEqual([
4949
'sh',
5050
'-c',
51-
'/usr/sbin/update-ca-certificates && /update-job-proxy'
51+
'/usr/sbin/update-ca-certificates && /dependabot-proxy'
5252
])
5353

5454
expect(proxy.networkName).toBe('dependabot-job-1-internal-network')

dist/cleanup/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)