Skip to content

Commit

Permalink
fix: Use cosign container ID instead of set name
Browse files Browse the repository at this point in the history
In case container name's conflict

Signed-off-by: RJ Sampson <[email protected]>
  • Loading branch information
EyeCantCU committed Jul 2, 2024
1 parent 4a69e93 commit ab5ee40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sign/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ runs:
shell: bash
run: |
docker pull cgr.dev/chainguard/cosign:latest
docker run -d --name cosign cgr.dev/chainguard/cosign:latest
docker cp cosign:/usr/bin/cosign /usr/local/bin/cosign
CONTAINER_ID=$(docker run -d cgr.dev/chainguard/cosign:latest)
docker cp "${CONTAINER_ID}":/usr/bin/cosign /usr/local/bin/cosign
- name: Sign container image
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions verify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ runs:
shell: bash
run: |
docker pull cgr.dev/chainguard/cosign:latest
docker run -d --name cosign cgr.dev/chainguard/cosign:latest
docker cp cosign:/usr/bin/cosign /usr/local/bin/cosign
CONTAINER_ID=$(docker run -d cgr.dev/chainguard/cosign:latest)
docker cp "${CONTAINER_ID}":/usr/bin/cosign /usr/local/bin/cosign
- name: Verify container
shell: bash
Expand Down

0 comments on commit ab5ee40

Please sign in to comment.