Skip to content

Commit 9121b21

Browse files
committed
avoid GH macros in shell code 2
1 parent 8f94c13 commit 9121b21

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.github/workflows/build_latest_release_multi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ jobs:
7272
- name: Install Cosign
7373
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3.10.0
7474
- name: Write signing key to disk (only needed for `cosign sign --key`)
75-
run: echo "${{ secrets.COSIGN_PRIVATE_KEY }}" > cosign.key
75+
env:
76+
COSIGN_PRIVATE_KEY: '${{ secrets.COSIGN_PRIVATE_KEY }}'
77+
run: echo "${COSIGN_PRIVATE_KEY}" > cosign.key
7678
- name: Sign images with sigstore key
7779
run: |
7880
cosign sign -y --key cosign.key ghcr.io/curl/curl-container/curl-multi:$REL

.github/workflows/build_master.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ jobs:
6767
- name: Install Cosign
6868
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3.10.0
6969
- name: Write signing key to disk (only needed for `cosign sign --key`)
70-
run: echo "${{ secrets.COSIGN_PRIVATE_KEY }}" > cosign.key
70+
env:
71+
COSIGN_PRIVATE_KEY: '${{ secrets.COSIGN_PRIVATE_KEY }}'
72+
run: echo "${COSIGN_PRIVATE_KEY}" > cosign.key
7173
- name: Sign image with a key
7274
run: |
7375
cosign sign -y --key cosign.key ghcr.io/curl/curl-container/curl-dev:master

.github/workflows/build_master_dev.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ jobs:
6464
- name: Install Cosign
6565
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3.10.0
6666
- name: Write signing key to disk (only needed for `cosign sign --key`)
67-
run: echo "${{ secrets.COSIGN_PRIVATE_KEY }}" > cosign.key
67+
env:
68+
COSIGN_PRIVATE_KEY: '${{ secrets.COSIGN_PRIVATE_KEY }}'
69+
run: echo "${COSIGN_PRIVATE_KEY}" > cosign.key
6870
- name: Sign image with a key
6971
run: |
7072
cosign sign -y --key cosign.key ghcr.io/curl/curl-container/curl-dev-debian:master

.github/workflows/build_master_multi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ jobs:
6666
- name: Install Cosign
6767
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3.10.0
6868
- name: Write signing key to disk (only needed for `cosign sign --key`)
69-
run: echo "${{ secrets.COSIGN_PRIVATE_KEY }}" > cosign.key
69+
env:
70+
COSIGN_PRIVATE_KEY: '${{ secrets.COSIGN_PRIVATE_KEY }}'
71+
run: echo "${COSIGN_PRIVATE_KEY}" > cosign.key
7072
- name: Sign image with a key
7173
run: |
7274
cosign sign -y --key cosign.key ghcr.io/curl/curl-container/curl-multi:master

0 commit comments

Comments
 (0)