Skip to content

Commit 525a930

Browse files
switch docker documentation to GHCR (#4885)
For parity, also remove major version suffix from GHCR packages. Signed-off-by: Spencer Schrock <sschrock@google.com>
1 parent 66c42b6 commit 525a930

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/publishimage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ jobs:
6565
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad
6666
- name: Sign image
6767
run: |
68-
cosign sign --yes ghcr.io/${{github.repository_owner}}/scorecard/v5:${{ github.sha }}
68+
cosign sign --yes ghcr.io/${{github.repository_owner}}/scorecard:${{ github.sha }}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,10 @@ $(KOCACHE_PATH):
383383

384384
scorecard-ko: | $(KO) $(KOCACHE_PATH)
385385
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
386-
KO_DOCKER_REPO=${KO_PREFIX}/${IMAGE_NAME}
386+
KO_DOCKER_REPO=ghcr.io/ossf/scorecard \
387387
LDFLAGS="$(LDFLAGS)" \
388388
KO_CACHE=$(KOCACHE_PATH) \
389-
$(KO) build -B \
389+
$(KO) build --bare \
390390
--sbom=none \
391391
--platform=$(PLATFORM) \
392392
--tags latest,$(GIT_VERSION),$(GIT_HASH) \

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ Language: You must have GoLang installed to run Scorecard
231231
`scorecard` is available as a Docker container:
232232

233233
```shell
234-
docker pull gcr.io/openssf/scorecard:stable
234+
docker pull ghcr.io/ossf/scorecard:latest
235235
```
236236

237237
To use a specific scorecard version (e.g., v3.2.1), run:
238238

239239
```shell
240-
docker pull gcr.io/openssf/scorecard:v3.2.1
240+
docker pull ghcr.io/ossf/scorecard:v3.2.1
241241
```
242242

243243
##### Standalone
@@ -410,13 +410,13 @@ Check scores:
410410
The `GITHUB_AUTH_TOKEN` has to be set to a valid [token](#Authentication)
411411

412412
```shell
413-
docker run -e GITHUB_AUTH_TOKEN=token gcr.io/openssf/scorecard:stable --show-details --repo=https://github.com/ossf/scorecard
413+
docker run -e GITHUB_AUTH_TOKEN=token ghcr.io/ossf/scorecard:latest --show-details --repo=https://github.com/ossf/scorecard
414414
```
415415

416416
To use a specific scorecard version (e.g., v3.2.1), run:
417417

418418
```shell
419-
docker run -e GITHUB_AUTH_TOKEN=token gcr.io/openssf/scorecard:v3.2.1 --show-details --repo=https://github.com/ossf/scorecard
419+
docker run -e GITHUB_AUTH_TOKEN=token ghcr.io/ossf/scorecard:v3.2.1 --show-details --repo=https://github.com/ossf/scorecard
420420
```
421421

422422
##### Showing Detailed Results

0 commit comments

Comments
 (0)