Skip to content

Commit dc0a596

Browse files
authored
Merge pull request #72 from apollographql/bkinzle/phoenix-000
refactor: remove checks that throw error if the container repository contains a slash
2 parents 95fa2bd + 4eb2b68 commit dc0a596

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

.github/workflows/check-dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
id: diff
4747
run: |
4848
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
49-
echo "Detected uncommitted changes after build. See status below:"
49+
echo "Detected uncommitted changes after build. Did you forget to run 'npm run all'? See status below:"
5050
git diff --ignore-space-at-eol --text dist/
5151
exit 1
5252
fi

dist/index.js

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/artifactRegistry.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ export class ArtifactRegistryDockerRegistryClient {
8686
core.info(
8787
`running diff docker tags ${prevTag} ${nextTag} ${dockerImageRepository}`,
8888
);
89-
// Input is relatively trusted; this is largely to prevent mistaken uses
90-
// like specifying a full Docker-style repository with slashes.
91-
if (dockerImageRepository.includes('/')) {
92-
throw Error('repository cannot contain a slash');
93-
}
94-
9589
// Note: we don't need `listTagsAsync` (which is recommended) because we
9690
// only care about the first element in the result array, which is the list of tags.
9791
// https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination
@@ -126,11 +120,6 @@ export class ArtifactRegistryDockerRegistryClient {
126120
dockerImageRepository,
127121
tag,
128122
}: GetAllEquivalentTagsOptions): Promise<string[]> {
129-
// Input is relatively trusted; this is largely to prevent mistaken uses
130-
// like specifying a full Docker-style repository with slashes.
131-
if (dockerImageRepository.includes('/')) {
132-
throw Error('repository cannot contain a slash');
133-
}
134123
if (tag.includes('/')) {
135124
throw Error('tag cannot contain a slash');
136125
}

0 commit comments

Comments
 (0)